![]() |
Coretex
|
Public Member Functions | |
int | count (self) |
bool | rename (self, str name) |
Optional[SampleType] | getSample (self, str name) |
Represents the generic class Dataset Includes methods that can be used by any instance of Dataset and abstract methods that must be implemented by any subclass Properties ---------- name : str name of dataset samples : List[SampleType] list of samples
Definition at line 29 of file dataset.py.
int coretex.entities.dataset.dataset.Dataset.count | ( | self | ) |
Returns ------- int -> number of samples in this dataset
Definition at line 48 of file dataset.py.
Optional[SampleType] coretex.entities.dataset.dataset.Dataset.getSample | ( | self, | |
str | name | ||
) |
Retrieves sample which matches the provided name Parameters ---------- name : str name of sample Returns ------- Optional[SampleType] -> sample object
Definition at line 90 of file dataset.py.
bool coretex.entities.dataset.dataset.Dataset.rename | ( | self, | |
str | name | ||
) |
Renames the dataset, if the provided name is different from the current name Parameters ---------- name : str new dataset name Returns ------- bool -> True if dataset was renamed, False if dataset was not renamed
Reimplemented in coretex.entities.dataset.network_dataset.NetworkDataset.
Definition at line 66 of file dataset.py.