Table of Contents
ModelProfile Objects
class ModelProfile()
Model Class for sketch metrics for model outputs
Attributes
metrics : ModelMetrics the model metrics object model_type : ModelType Type of mode, CLASSIFICATION, REGRESSION, UNKNOWN, etc. output_fields : list list of fields that map to model outputs
compute_metrics
| compute_metrics(targets, predictions, scores=None, model_type: ModelType = None, target_field=None, prediction_field=None, score_field=None)
Compute and track metrics for confusion_matrix
Parameters
targets : List targets (or actuals) for validation, if these are floats it is assumed the model is a regression type model predictions : List predictions (or inferred values) scores : List, optional associated scores for each prediction (for binary and multiclass problems) target_field : str, optional prediction_field : str, optional score_field : str, optional (for binary and multiclass problems)
Raises
NotImplementedError