File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 138
138
X = dataset .data [:, np .logical_not (target )]
139
139
y = dataset .data [:, target ].squeeze ()
140
140
y_trans = quantile_transform (dataset .data [:, target ],
141
- output_distribution = 'normal' ).squeeze ()
141
+ n_quantiles = 300 ,
142
+ output_distribution = 'normal' ,
143
+ copy = True ).squeeze ()
142
144
143
145
###############################################################################
144
146
# A :class:`sklearn.preprocessing.QuantileTransformer` is used such that the
184
186
185
187
regr_trans = TransformedTargetRegressor (
186
188
regressor = RidgeCV (),
187
- transformer = QuantileTransformer (output_distribution = 'normal' ))
189
+ transformer = QuantileTransformer (n_quantiles = 300 ,
190
+ output_distribution = 'normal' ))
188
191
regr_trans .fit (X_train , y_train )
189
192
y_pred = regr_trans .predict (X_test )
190
193
You can’t perform that action at this time.
0 commit comments