mit_d3m.dataset module¶
Classes
|
|
|
|
|
Functions
|
-
class
mit_d3m.dataset.
D3MDS
(dataset, problem)[source]¶ Bases:
object
Methods
get_data
()get_related_resources
(data_modality)get_resources_dir
(data_modality)-
dataset
= None¶
-
problem
= None¶
-
-
class
mit_d3m.dataset.
D3MDataset
(dataset)[source]¶ Bases:
object
Methods
Detect the data modality based on the resource_types.
Get the datasetID from datasetDoc.
Get the dataset schema version that was used to create this dataset.
Returns the path of the directory containing images if they exist in this dataset.
Get the contents of learningData.doc as a DataFrame.
get_related_resource_names
(resource_type)Returns the path of the directory containing text if they exist in this dataset.
-
dsDoc
= None¶
-
dsHome
= None¶
-
get_data_modality
()[source]¶ Detect the data modality based on the resource_types.
resource_types == [‘table’] => ‘single_table’ resource_types == [‘something_else’…] => ‘something_else’ # this is not likely resource_types == [‘table’, ‘table’…] => ‘multi_table’ resource_types == [‘table’, ‘something_else’…] => ‘something_else’
-
get_dataset_schema_version
()[source]¶ Get the dataset schema version that was used to create this dataset.
-
get_image_path
()[source]¶ Returns the path of the directory containing images if they exist in this dataset.
-
get_text_path
()[source]¶ Returns the path of the directory containing text if they exist in this dataset.
-
learningDataFile
= None¶
-
-
class
mit_d3m.dataset.
D3MProblem
(problem)[source]¶ Bases:
object
Methods
Get the problemID from problemDoc.
Get the problem schema version that was used to create this dataset.
-
get_problem_schema_version
()[source]¶ Get the problem schema version that was used to create this dataset.
-
prDoc
= None¶
-
prHome
= None¶
-
splitsFile
= None¶
-