def test_numpy_slices_csv_dict():
    logger.info('Test loading csv file as dict.')
    csv_file = '../data/dataset/testNumpySlicesDataset/heart.csv'
    df = pd.read_csv(csv_file)
    df.pop('state')
    res = df.values
    ds = de.NumpySlicesDataset(dict(df), shuffle=False)
    for (i, data) in enumerate(ds):
        assert np.equal(data, res[i]).all()
def test_numpy_slices_csv_dict():
    logger.info('Test loading csv file as dict.')
    csv_file = '../data/dataset/testNumpySlicesDataset/heart.csv'
    df = pd.read_csv(csv_file)
    df.pop('state')
    res = df.values
    ds = de.NumpySlicesDataset(dict(df), shuffle=False)
    for (i, data) in enumerate(ds):
        assert np.equal(data, res[i]).all()