plot_threshold
Plot metric performances against threshold values. Only for binary classification tasks.
Parameters: |
models: str, sequence or None, optional (default=None)
metric: str, func, scorer, sequence or None, optional (default=None)
dataset: str, optional (default="test")
steps: int, optional (default=100)
title: str or None, optional (default=None)
figsize: tuple, optional (default=(10, 6))
filename: str or None, optional (default=None)
display: bool or None, optional (default=True) |
Returns: |
matplotlib.figure.Figure Plot object. Only returned if display=None .
|
Example
from atom import ATOMClassifier
from sklearn.metrics import recall_score
atom = ATOMClassifier(X, y)
atom.run("LGB")
atom.plot_threshold(metric=["accuracy", "f1", recall_score])