edflow.data.agnostics.csv_dset module

Summary

Classes:

CsvDataset

Using a csv file as index, this Dataset returns only the entries in the csv file, but can be easily extended to load other data using the ProcessedDatasets.

Reference

class edflow.data.agnostics.csv_dset.CsvDataset(csv_root, **pandas_kwargs)[source]

Bases: edflow.data.dataset_mixin.DatasetMixin

Using a csv file as index, this Dataset returns only the entries in the csv file, but can be easily extended to load other data using the ProcessedDatasets.

__init__(csv_root, **pandas_kwargs)[source]
Parameters
  • csv_root (str) – Path/to/the/csv containing all datapoints. The first line in the file should contain the names for the attributes in the corresponding columns.

  • pandas_kwargs (kwargs) – Passed to pandas.read_csv() when loading the csv file.

get_example(idx)[source]

Returns all entries in row idx of the labels.