d3m.metadata.params¶
-
class
d3m.metadata.params.
Params
(other=None, **values)[source]¶ Bases:
dict
A base class to be subclassed and used as a type for
Params
type argument in primitive interfaces. An instance of this subclass should be returned from primitive’sget_params
method, and accepted inset_params
.You should subclass the class and set type annotations on class attributes for params available in the class.
When creating an instance of the class, all parameters have to be provided.
-
pop
(k[, d]) → v, remove specified key and return the corresponding value.[source]¶ If key is not found, d is returned if given, otherwise KeyError is raised
-
popitem
() → (k, v), remove and return some (key, value) pair as a[source]¶ 2-tuple; but raise KeyError if D is empty.
-
-
class
d3m.metadata.params.
ParamsMeta
(class_name, bases, namespace, **kwargs)[source]¶ Bases:
d3m.utils.AbstractMetaclass