skactiveml.utils#
The skactiveml.utils module includes various utilities.
Classes#
Encode class labels with integers in [0, ..., n_classes-1] and use -1 for unlabeled. |
|
Immutable description of resolved target semantics. |
Functions#
Returns index of maximum value. |
|
Returns index of minimum value. |
|
Counts number of votes per class label for each sample. |
|
Assigns a label to each sample based on weighted voting. |
|
Creates a boolean mask indicating missing labels. |
|
Creates a boolean mask indicating present labels. |
|
Check whether class labels are uniformly strings or numbers. |
|
Check whether a missing label is compatible to a given target type. |
|
Check whether cost matrix has shape (n_classes, n_classes). |
|
Validate scalar parameters type and value. |
|
Check whether the general classifier are compatible with each other. |
|
Input validation for standard estimators. |
|
Check validity of the given random state. |
|
Calls a function with the given parameters given in kwargs, if they exist as parameters in f_callable. |
|
A decorator that matches the signature to a given method from a reference and hides it when the reference object does not have the wrapped function. |
|
Check if the class_prior is a valid prior. |
|
Compute confusion matrix [R3479f72bc894-1] to evaluate the accuracy of a classification. |
|
Return an array of indices indicating present labels. |
|
Return an array of indices indicating missing labels. |
|
Check whether an object satisfies type, value, or indicator rules. |
|
Validates bound and returns the bound of X if bound is None. |
|
Check whether two missing label values are equal to each other. |
|
Validate if budget_manager is a budget manager class and create a copy budget_manager_. |
|
Check if indices fit to array. |
|
Generates a batch by selecting the highest values in the utilities. |
|
Validate and update the expected number of features of an estimator. |
|
Check whether func is callable with the expected arity. |
|
Validate the forward_outputs mapping used by SkorchMixin. |
|
Check whether classes contains one vocabulary per target label. |
|
Resolve declared intent and target evidence to a target specification. |
|
Create a loss class (or wrap an existing instance) that selects part of a model's (possibly tuple-valued) output before passing it to the criterion. |