d3m.metadata.problem¶
-
class
d3m.metadata.problem.PerformanceMetric(value)[source]¶ Bases:
d3m.metadata.problem.PerformanceMetricBase,d3m.utils.EnumAn enumeration.
-
class
d3m.metadata.problem.Problem(problem_description=None, *, strict_digest=False)[source]¶ Bases:
dictA class representing a problem.
-
classmethod
from_json_structure(structure, *, strict_digest=False)[source]¶ For standard enumerations we map them from strings. For non-standard problem description fields we used a reversible conversion.
- Return type
~P
-
classmethod
load(problem_uri, *, problem_id=None, problem_version=None, problem_name=None, strict_digest=False, handle_score_split=True)[source]¶ Tries to load problem from
problem_uriusing all registered problem loaders.- Parameters
problem_uri (
str) – A URI to load.problem_id (
Optional[str]) – Override problem ID determined by the loader.problem_version (
Optional[str]) – Override problem version determined by the loader.problem_name (
Optional[str]) – Override problem name determined by the loader.strict_digest (
bool) – If computed digest does not match the one provided in metadata, raise an exception?handle_score_split (
bool) – Rename a scoring problem to not have the same name as testing problem and update dataset references.
- Returns
A loaded problem.
- Return type
-
classmethod
register_loader(loader)[source]¶ Registers a new problem loader.
- Parameters
loader (
Loader) – An instance of the loader class implementing a new loader.- Return type
None
-
classmethod
register_saver(saver)[source]¶ Registers a new dataset saver.
- Parameters
saver (
Saver) – An instance of the saver class implementing a new saver.- Return type
None
-
save(problem_uri)[source]¶ Tries to save dataset to
problem_uriusing all registered problem savers.- Parameters
problem_uri (
str) – A URI to save to.- Return type
None
-
to_json_structure(*, canonical=False)[source]¶ For standard enumerations we map them to strings. Non-standard problem description fields we convert in a reversible manner.
- Return type
-
classmethod
-
class
d3m.metadata.problem.TaskKeyword(value)[source]¶ Bases:
d3m.metadata.problem.TaskKeywordBase,d3m.utils.EnumAn enumeration.