plot_pareto_front
method plot_pareto_front(models=None, metric=None, title=None, legend=None, figsize=None, filename=None, display=True)[source]
Plot the Pareto front of a study.
Shows the trial scores plotted against each other. The marker's colors indicate the trial number. This plot is only available for models that ran multi-metric runs with hyperparameter tuning.
Parameters | models: int, str, Model or None, default=None
Model to plot. If None, all models are selected. Note that
leaving the default option could raise an exception if there
are multiple models. To avoid this, call the plot directly
from a model, e.g. metric: str, sequence or None, default=Noneatom.lr.plot_pareto_front() .
Metrics to plot. Use a sequence or add title: str, dict or None, default=None+ between options
to select more than one. If None, the metrics used to run
the pipeline are selected.
Title for the plot.
legend: str, dict or None, default=None
Does nothing. Implemented for continuity of the API.
figsize: tuple or None, default=None
Figure's size in pixels, format as (x, y). If None, it
adapts the size to the number of metrics shown.
filename: str or None, default=None
Save the plot using this name. Use "auto" for automatic
naming. The type of the file depends on the provided name
(.html, .png, .pdf, etc...). If display: bool or None, default=Truefilename has no file type,
the plot is saved as html. If None, the plot is not saved.
Whether to render the plot. If None, it returns the figure.
|
Returns | go.Figure or None
Plot object. Only returned if display=None .
|
See Also
Plot the Empirical Distribution Function of a study.
Plot the parameter relationship in a study.
Plot the hyperparameter tuning trials.
Example
>>> from atom import ATOMClassifier
>>> from sklearn.datasets import load_breast_cancer
>>> X, y = load_breast_cancer(return_X_y=True, as_frame=True)
>>> atom = ATOMClassifier(X, y)
>>> atom.run("RF", metric=["f1", "accuracy", "recall"], n_trials=15)
>>> atom.plot_pareto_front()