Training
Backends
Classes and utilities
Training and evaluation classes and functions
Config classes
|
Class to hold training configuration. |
|
Class to hold results of an experiment. |
|
Class to hold experiment configuration. |
|
Class to hold model configuration. |
|
Class to hold cross-validation configuration. |
|
Class to hold evaluation configuration. |
Splitting classes and functions
Validation method that uses the training set as validation set. |
|
|
Like GroupKFold but with random combinations of groups instead of deterministic combinations based on group size. |
|
Validation method that uses a pre-defined validation set. |
|
Gets an appropriate cross-validation splitter for the given number of folds and groups, or a single random split. |
Miscellaneous functions
|
Modifies parameter names to pass to a Pipeline instance's |
|
Get dictionary of scores for predictions. |
|
Convert scikit-learn scores dictionary to pandas dataframe. |
Classification
Classification functions.
This module contains functions for performing classification tasks.
|
Calculated binary accuracy. |
|
Given a list of classes, returns scikit-learn scorers for overall metrics and per-class metrics, for multiclass classification. |
|
Cross validate a classifier. |
|
Cross validates a |
|
Trains a |
|
Gets class weights such that each class has the same total weight across all instances. |
|
Gets sample weights such that each unique label has the same total weight across all instances. |
|
Convert annotator ratings into distribution over classes for each instance. |
Transforms
Transforms to use in estimators.
|
Per-group (offline) transformation (e.g. |
|
Per-instance transformation (e.g. |
|
Transform that modifies groups independently without storing parameters. |
|
Transform that modifies instances independently without storing parameters. |
Transform designed to process sequences of vectors. |
|
|
Wrapper around a scikit-learn transform that can process sequences of vectors. |