@@ -49,7 +49,6 @@ def plot_decision_regions(X, y, clf,
49
49
filler_feature_ranges = None ,
50
50
ax = None ,
51
51
X_highlight = None ,
52
- res = None ,
53
52
zoom_factor = 1. ,
54
53
legend = 1 ,
55
54
hide_spines = True ,
@@ -93,13 +92,6 @@ def plot_decision_regions(X, y, clf,
93
92
one if ax=None.
94
93
X_highlight : array-like, shape = [n_samples, n_features] (default: None)
95
94
An array with data points that are used to highlight samples in `X`.
96
- res : float or array-like, shape = (2,) (default: None)
97
- This parameter was used to define the grid width,
98
- but it has been deprecated in favor of
99
- determining the number of points given the figure DPI and size
100
- automatically for optimal results and computational efficiency.
101
- To increase the resolution, it's is recommended to use to provide
102
- a `dpi argument via matplotlib, e.g., `plt.figure(dpi=600)`.
103
95
zoom_factor : float (default: 1.0)
104
96
Controls the scale of the x- and y-axis of the decision plot.
105
97
hide_spines : bool (default: True)
@@ -135,13 +127,6 @@ def plot_decision_regions(X, y, clf,
135
127
if ax is None :
136
128
ax = plt .gca ()
137
129
138
- if res is not None :
139
- warnings .warn ("The 'res' parameter has been deprecated."
140
- "To increase the resolution, it's is recommended"
141
- "to use to provide a `dpi argument via matplotlib,"
142
- "e.g., `plt.figure(dpi=600)`." ,
143
- DeprecationWarning )
144
-
145
130
plot_testdata = True
146
131
if not isinstance (X_highlight , np .ndarray ):
147
132
if X_highlight is not None :
0 commit comments