pyanno4rt.learning_model.inspection._model_inspector
Model inspection.
Overview
Model inspection class. |
Classes
- class pyanno4rt.learning_model.inspection._model_inspector.ModelInspector(model_label)[source]
Model inspection class.
This class provides the computation method for a number of inspection algorithms on a machine learning outcome model.
- Parameters:
model_label (str) – Label for the machine learning outcome model.
- model_label
See ‘Parameters’.
- Type:
str
Overview
Methods compute(model_instance, hyperparameters, features, labels, preprocessing_steps, number_of_repeats, oof_folds)Compute the inspection results.
Members
- compute(model_instance, hyperparameters, features, labels, preprocessing_steps, number_of_repeats, oof_folds)[source]
Compute the inspection results.
- Parameters:
model_instance (object) – The object representing the machine learning outcome model.
hyperparameters (dict) – Dictionary with the machine learning outcome model hyperparameters.
features (ndarray) – Values of the input features.
labels (ndarray) – Values of the input labels.
preprocessing_steps (list) – Sequence of labels associated with preprocessing algorithms for the machine learning outcome model.
number_of_repeats (int) – Number of feature permutations.
oof_folds (ndarray) – Out-of-fold split numbers.