plot_pipeline
Plot a diagram of the pipeline.
Parameters: |
model: str or None, optional (default=None)
draw_hyperparameter_tuning: bool, optional (default=True)
color_branches: bool or None, optional (default=None)
title: str or None, optional (default=None)
figsize: tuple or None, optional (default=None)
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 .
|
Tip
Print atom.pipeline
in a notebook for sklearn's interactive visualization
of the current pipeline.
Example
from atom import ATOMClassifier
atom = ATOMClassifier(X, y)
atom.impute(strat_num="median")
atom.encode(max_onehot=5)
atom.run(["GNB", "RNN", "SGD", "MLP"])
atom.voting(models=atom.winners[:2])
atom.plot_pipeline() # For a single branch

from atom import ATOMClassifier
atom = ATOMClassifier(X, y)
atom.scale()
atom.prune()
atom.run("RF", n_calls=10, n_initial_points=3)
atom.branch = "oversample"
atom.balance(strategy="adasyn")
atom.run("RF_os")
atom.branch = "undersample_from_master"
atom.balance(strategy="nearmiss")
atom.run("RF_us")
atom.plot_pipeline() # For multiple branches
