d3m.primitive_interfaces.featurization module

class d3m.primitive_interfaces.featurization.FeaturizationLearnerPrimitiveBase(*, hyperparams, random_seed=0, docker_containers=None, volumes=None, temporary_directory=None)[source]

Bases: d3m.primitive_interfaces.base.PrimitiveBase

A base class for primitives which transform raw data into a more usable form.

Use this version for featurizers that allow for fitting (for domain-adaptation, data-specific deep learning, etc.). Otherwise use FeaturizationTransformerPrimitiveBase.

metadata[source]

Primitive’s metadata. Available as a class attribute.

logger[source]

Primitive’s logger. Available as a class attribute.

hyperparams[source]

Hyperparams passed to the constructor.

random_seed[source]

Random seed passed to the constructor.

docker_containers[source]

A dict mapping Docker image keys from primitive’s metadata to (named) tuples containing container’s address under which the container is accessible by the primitive, and a dict mapping exposed ports to ports on that address.

volumes[source]

A dict mapping volume keys from primitive’s metadata to file and directory paths where downloaded and extracted files are available to the primitive.

temporary_directory[source]

An absolute path to a temporary directory a primitive can use to store any files for the duration of the current pipeline run phase. Directory is automatically cleaned up after the current pipeline run phase finishes.

docker_containers = None[source]
hyperparams = None[source]
random_seed = None[source]
temporary_directory = None[source]
volumes = None[source]
class d3m.primitive_interfaces.featurization.FeaturizationTransformerPrimitiveBase(*, hyperparams, random_seed=0, docker_containers=None, volumes=None, temporary_directory=None)[source]

Bases: d3m.primitive_interfaces.transformer.TransformerPrimitiveBase

A base class for primitives which transform raw data into a more usable form.

Use this version for featurizers that do not require or allow any fitting, and simply transform data on demand. Otherwise use FeaturizationLearnerPrimitiveBase.

metadata[source]

Primitive’s metadata. Available as a class attribute.

logger[source]

Primitive’s logger. Available as a class attribute.

hyperparams[source]

Hyperparams passed to the constructor.

random_seed[source]

Random seed passed to the constructor.

docker_containers[source]

A dict mapping Docker image keys from primitive’s metadata to (named) tuples containing container’s address under which the container is accessible by the primitive, and a dict mapping exposed ports to ports on that address.

volumes[source]

A dict mapping volume keys from primitive’s metadata to file and directory paths where downloaded and extracted files are available to the primitive.

temporary_directory[source]

An absolute path to a temporary directory a primitive can use to store any files for the duration of the current pipeline run phase. Directory is automatically cleaned up after the current pipeline run phase finishes.

docker_containers = None[source]
hyperparams = None[source]
random_seed = None[source]
temporary_directory = None[source]
volumes = None[source]