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’s get_params method, and accepted in set_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.

clear()None.  Remove all items from D.[source]
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.

setdefault(k[, d])D.get(k,d), also set D[k]=d if k not in D[source]
update(other=None, **values)[source]

If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]

Return type


class d3m.metadata.params.ParamsMeta(class_name, bases, namespace, **kwargs)[source]

Bases: d3m.utils.AbstractMetaclass