skactiveml.utils#
The skactiveml.utils module includes various utilities.
Classes#
Encode class labels with value between 0 and classes-1 and uses -1 for unlabeled samples. |
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 parameters are compatible to each other (only if classes is not None). |
|
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 if obj is one of the given types. |
|
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 number of features for an estimator based on the input data. |
|
Checks if func is a callable and if the number of free parameters is correct. |
|
Check forward outputs required by SkorchMixin and make_criterion_tuple_aware. |
|
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. |