Object and estimator tags#
Every first-class object in skpro
is tagged with a set of tags that describe its properties and capabilities,
or control its behavior.
Tags are key-value pairs, where the key is a string with the name of the tag. The value of the tag can have arbitrary type, and describes a property, capability, or controls behaviour of the object, depending on the tag.
For instance, a probabilistic regressor has the tag "capability:survival": True
if it can use censoring information for survival analysis.
Users can find all regressors with this capability by filtering for this tag.
This API reference lists all tags available in skpro, and key utilities
for their usage.
Inspecting tags, retrieving by tags#
Tags can be inspected at runtime using the following utilities:
to get the tags of an object, use the
get_tagsmethod. An object’s tags can depend on its hyper-parameters.to get the tags of a class, use the
get_class_tagsmethod of the class. A class’s tags are static and do not depend on its hyper-parameters. By default, class tags that may vary for instances take the most “capable” value, in the case of capabilities.to programmatically retrieve all tags available in
skproor for a particular type of object, at runtime, use theregistry.all_tagsutility.
|
Get a list of all tags from skpro. |
|
Get a list of all objects from skpro. |
General tags, packaging#
This section lists tags that are general and apply to all objects in skpro.
These tags are typically used for typing, packaging and documentation purposes.
Type of object, e.g., 'regressor', 'transformer'. |
|
Type of estimator, e.g., 'regressor', 'transformer'. |
|
List of reserved parameter names. |
|
List of current maintainers of the object. |
|
List of authors of the object. |
|
Python version specifier (PEP 440). |
|
Python dependencies of estimator. |
|
Import name aliases for dependencies. |
|
License type for interfaced packages. |
Probabilistic regressor tags#
This section lists tags applying to probabilistic regressors
("regressor_proba" type).
These tags are used to describe capabilities, properties, and behavior of
probabilistic regressors.
Capability for survival analysis. |
|
Support for multioutput regression. |
|
Support for missing values. |
|
Support for online updates. |
|
Internal X machine type. |
|
Internal y machine type. |
|
Internal censoring machine type. |
Distribution tags#
This section lists tags applying to probability distributions
("distribution" type).
These tags are used to describe capabilities, properties, and behavior of
distributions.
Approximate methods of distribution. |
|
Numerically exact methods of distribution. |
|
Methods of distr that are mathematically undefined. |
|
Measure type of distribution. |
|
Parametrization type of distribution. |
|
Sample size for MC mean estimates. |
|
Sample size for MC variance estimates. |
|
Sample size for MC energy estimates. |
|
Sample size for other MC estimates. |
|
Max iterations for bisection method. |
|
Parameters to broadcast. |
|
Whether to initialize broadcast parameters. |
|
Inner logic vectorization type. |
Metric tags#
This section lists tags applying to probabilistic metrics ("metric" type).
Expected input type for y_pred. |
|
Direction of metric optimization. |
|
Capability for survival analysis. |
Meta-object tags#
Tags relating to meta-object composition (pipelines, ensembles, etc.).
Component list attribute name. |
|
Fitted component list attribute name. |
Testing and CI tags#
These tags control behaviour of objects in skpro continuous integration
tests.
They are primarily useful for developers managing CI behaviour of individual objects.
Library dependencies required for tests. |
|
Whether tests require their own VM. |
|
Test names to skip on CI. |
|
Additional dependencies for tests. |