fabric.visualization
plot
def plot(result, fig_type, **kwargs) -> go.Figure
An unified entry point for plotting.
Arguments:
result- The experiment result of AutoML.fit() or Tune.run(). Must be an instance of AutoML or ExperimentAnalysis.fig_type- The type of figure you want to plot. Available options are:"optimization_history": Plot optimization history of all trials in the experiment.
"feature_importance": Plot importance for each feature in the dataset.
"parallel_coordinate": Plot the high-dimensional parameter relationships in the experiment. Extra arguments for this figure:
learner: The learner you want to plot. Only available for AutoML. Plot best learner if not specified.
params: The parameters you want to plot. Plot all parameters if not specified.
"contour": Plot the parameter relationship as contour plot in the experiment. Extra arguments for this figure:
learner: The learner you want to plot. Only available for AutoML. Plot best learner if not specified.
params: The parameters you want to plot. Plot all parameters if not specified.
"edf": Plot the objective value EDF (empirical distribution function) of the experiment.
"timeline": Plot the timeline of the experiment.
"slice": Plot the parameter relationship as slice plot in a study. Extra arguments for this figure:
learner: The learner you want to plot. Only available for AutoML. Plot best learner if not specified.
params: The parameters you want to plot. Plot all parameters if not specified.
"param_importance": Plot the hyperparameter importance of the experiment. This plot use f-ANOVA to evaluate hyperparameter importance. Extra arguments for this figure:
learner: The learner you want to plot. Only available for AutoML. Plot best learner if not specified.
params: The parameters you want to plot. Plot all parameters if not specified.
**kwargs- Extra arguments for the plot function.
Returns:
A plotly.graph_objs.Figure() object.
plot_optimization_history
def plot_optimization_history(result) -> go.Figure
Plot optimization history of all trials in the experiment.
Arguments:
result- The experiment result of AutoML.fit() or Tune.run(). Must be an instance of AutoML or ExperimentAnalysis.
Returns:
A plotly.graph_objs.Figure() object.
plot_feature_importance
def plot_feature_importance(result) -> go.Figure
Plot importance for each feature in the dataset.
Arguments:
result- Your experiment result from AutoML. Not available for Hyperparameter Tuning.
Returns:
A plotly.graph_objs.Figure() object.
plot_parallel_coordinate
def plot_parallel_coordinate(result, learner=None, params=None) -> go.Figure
Plot the high-dimensional parameter relationships in the experiment.
Arguments:
result- The experiment result of AutoML.fit() or Tune.run(). Must be an instance of AutoML or ExperimentAnalysis.learner- The learner you want to plot. Only available for AutoML. Plot best learner if not specified.params- The parameters you want to plot. Plot all parameters if not specified.
Returns:
A plotly.graph_objs.Figure() object.
plot_contour
def plot_contour(result, learner=None, params=None) -> go.Figure
Plot the parameter relationship as contour plot in the experiment.
Arguments:
result- The experiment result of AutoML.fit() or Tune.run(). Must be an instance of AutoML or ExperimentAnalysis.learner- The learner you want to plot. Only available for AutoML. Plot best learner if not specified.params- The parameters you want to plot. Plot all parameters if not specified.
Returns:
A plotly.graph_objs.Figure() object.
plot_edf
def plot_edf(result) -> go.Figure
Plot the objective value EDF (empirical distribution function) of the experiment. EDF is useful to analyze and improve search spaces. For instance, you can see a practical use case of EDF in the paper Designing Network Design Spaces.
Arguments:
result- The experiment result of AutoML.fit() or Tune.run(). Must be an instance of AutoML or ExperimentAnalysis. For AutoML experiments, each learner's trials form an optimization series. For hyperparameter tuning, you can provide either a single result or multiple results (in a list or dictionary) to this function.
Returns:
A plotly.graph_objs.Figure() object.
plot_timeline
def plot_timeline(result) -> go.Figure
Plot the timeline of the experiment.
Arguments:
result- The experiment result of AutoML.fit() or Tune.run(). Must be an instance of AutoML or ExperimentAnalysis.
Returns:
A plotly.graph_objs.Figure() object.
plot_slice
def plot_slice(result, learner=None, params=None) -> go.Figure
Plot the parameter relationship as slice plot in a study.
Arguments:
result- The experiment result of AutoML.fit() or Tune.run(). Must be an instance of AutoML or ExperimentAnalysis.learner- The learner you want to plot. Only available for AutoML. Plot best learner if not specified.params- The parameters you want to plot. Plot all parameters if not specified.
Returns:
A plotly.graph_objs.Figure() object.
plot_param_importance
def plot_param_importance(result, learner=None, params=None) -> go.Figure
Plot the hyperparameter importance of the experiment. This plot uses Optuna's f-ANOVA evaluator to assess hyperparameter importance.
Arguments:
result- The experiment result of AutoML.fit() or Tune.run(). Must be an instance of AutoML or ExperimentAnalysis.learner- The learner you want to plot. Only available for AutoML. Plot best learner if not specified.params- The parameters you want to plot. Plot all parameters if not specified.
Returns:
A plotly.graph_objs.Figure() object.