def test_numpy_slices_csv_value():
    logger.info('Test loading value of csv file.')
    csv_file = '../data/dataset/testNumpySlicesDataset/heart.csv'
    df = pd.read_csv(csv_file)
    target = df.pop('target')
    df.pop('state')
    np_data = (df.values, target.values)
    ds = de.NumpySlicesDataset(np_data, column_names=['col1', 'col2'], shuffle=False)
    for (i, data) in enumerate(ds):
        assert np.equal(np_data[0][i], data[0]).all()
        assert np.equal(np_data[1][i], data[1]).all()
def test_numpy_slices_csv_value():
    logger.info('Test loading value of csv file.')
    csv_file = '../data/dataset/testNumpySlicesDataset/heart.csv'
    df = pd.read_csv(csv_file)
    target = df.pop('target')
    df.pop('state')
    np_data = (df.values, target.values)
    ds = de.NumpySlicesDataset(np_data, column_names=['col1', 'col2'], shuffle=False)
    for (i, data) in enumerate(ds):
        assert np.equal(np_data[0][i], data[0]).all()
        assert np.equal(np_data[1][i], data[1]).all()