Skip to content

Commit d8b7d46

Browse files
KenitoIncjnothman
authored andcommitted
EXA Use n_quantiles=500 in plot_map_data_to_normal.py (scikit-learn#14149)
in order to fix warnings
1 parent e0cd849 commit d8b7d46

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/preprocessing/plot_map_data_to_normal.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@
5353
rng = np.random.RandomState(304)
5454
bc = PowerTransformer(method='box-cox')
5555
yj = PowerTransformer(method='yeo-johnson')
56-
qt = QuantileTransformer(output_distribution='normal', random_state=rng)
56+
# n_quantiles is set to the training set size rather than the default value
57+
# to avoid a warning being raised by this example
58+
qt = QuantileTransformer(n_quantiles=500, output_distribution='normal',
59+
random_state=rng)
5760
size = (N_SAMPLES, 1)
5861

5962

0 commit comments

Comments
 (0)