plot_learning_curve
Plot the model's learning curve: score vs number of training samples. Only use with models fitted using train sizing. Ensemble models are ignored.
Parameters: |
models: str, sequence or None, optional (default=None)
metric: int or str, optional (default=0)
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: |
fig: matplotlib.figure.Figure Plot object. Only returned if display=None .
|
Example
from atom import ATOMClassifier
atom = ATOMClassifier(X, y)
atom.train_sizing(
models=["LDA", "RF"],
metric="precision",
train_sizes=10,
n_bootstrap=4,
)
atom.plot_learning_curve()