responsendarray of shape (grid_resolution, grid_resolution) or (grid_resolution, grid_resolution, n_classes)
Values of the response function.
multiclass_colorslist of str or str, default=None
Specifies how to color each class when plotting all classes of multiclass
problem. Ignored for binary problems and multiclass problems when plotting a
single prediction value per point.
Possible inputs are:
list: list of Matplotlib
color
strings, of length n_classes
Single color colormaps will be generated from the colors in the list or
colors taken from the colormap and passed to the cmap parameter of
the plot_method.
Added in version 1.7.
xlabelstr, default=None
Default label to place on x axis.
ylabelstr, default=None
Default label to place on y axis.
Attributes:
surface_matplotlib QuadContourSet or QuadMesh or list of such objects
If plot_method is ‘contour’ or ‘contourf’, surface_ is
QuadContourSet. If
plot_method is ‘pcolormesh’, surface_ is
QuadMesh.
multiclass_colors_array of shape (n_classes, 4)
Colors used to plot each class in multiclass problems.
Only defined when color_of_interest is None.
Specifies whether to use decision_function,
predict_proba or predict as the target response.
If set to ‘auto’, the response method is tried in the order as
listed above.
Changed in version 1.6: For multiclass problems, ‘auto’ no longer defaults to ‘predict’.
class_of_interestint, float, bool or str, default=None
The class to be plotted when response_method is ‘predict_proba’
or ‘decision_function’. If None, estimator.classes_[1] is considered
the positive class for binary classifiers. For multiclass
classifiers, if None, all classes will be represented in the
decision boundary plot; the class with the highest response value
at each point is plotted. The color of each class can be set via
multiclass_colors.
Added in version 1.4.
multiclass_colorslist of str, or str, default=None
Specifies how to color each class when plotting multiclass
‘predict_proba’ or ‘decision_function’ and class_of_interest is
None. Ignored in all other cases.
Possible inputs are:
list: list of Matplotlib
color
strings, of length n_classes
None: ‘tab10’ colormap is used to sample colors if the number of
classes is less than or equal to 10, otherwise ‘gist_rainbow’
colormap.
Single color colormaps will be generated from the colors in the list or
colors taken from the colormap, and passed to the cmap parameter of
the plot_method.
Added in version 1.7.
xlabelstr, default=None
The label used for the x-axis. If None, an attempt is made to
extract a label from X if it is a dataframe, otherwise an empty
string is used.
ylabelstr, default=None
The label used for the y-axis. If None, an attempt is made to
extract a label from X if it is a dataframe, otherwise an empty
string is used.
axMatplotlib axes, default=None
Axes object to plot on. If None, a new figure and axes is
created.
**kwargsdict
Additional keyword arguments to be passed to the
plot_method.