@@ -196,14 +196,14 @@ predict_proba(rf::RandomForestClassifier, X) =
196
196
197
197
predict (rf:: RandomForestClassifier , X) = apply_forest (rf. ensemble, X)
198
198
199
- function show (io:: IO , dt :: RandomForestClassifier )
199
+ function show (io:: IO , rf :: RandomForestClassifier )
200
200
println (io, " RandomForestClassifier" )
201
- println (io, " ntrees: $(dt . ntrees) " )
202
- println (io, " max_depth: $(dt . max_depth) " )
203
- println (io, " nsubfeatures: $(dt . nsubfeatures) " )
204
- println (io, " partialsampling: $(dt . partialsampling) " )
205
- println (io, " classes: $(dt . classes) " )
206
- println (io, " ensemble: $(dt . ensemble) " )
201
+ println (io, " ntrees: $(rf . ntrees) " )
202
+ println (io, " max_depth: $(rf . max_depth) " )
203
+ println (io, " nsubfeatures: $(rf . nsubfeatures) " )
204
+ println (io, " partialsampling: $(rf . partialsampling) " )
205
+ println (io, " classes: $(rf . classes) " )
206
+ println (io, " ensemble: $(rf . ensemble) " )
207
207
end
208
208
209
209
# ###############################################################################
@@ -259,14 +259,14 @@ end
259
259
260
260
predict (rf:: RandomForestRegressor , X) = apply_forest (rf. ensemble, X)
261
261
262
- function show (io:: IO , dt :: RandomForestRegressor )
262
+ function show (io:: IO , rf :: RandomForestRegressor )
263
263
println (io, " RandomForestRegressor" )
264
- println (io, " ntrees: $(dt . ntrees) " )
265
- println (io, " max_depth: $(dt . max_depth) " )
266
- println (io, " nsubfeatures: $(dt . nsubfeatures) " )
267
- println (io, " partialsampling: $(dt . partialsampling) " )
268
- println (io, " min_samples_leaf: $(dt . min_samples_leaf) " )
269
- println (io, " ensemble: $(dt . ensemble) " )
264
+ println (io, " ntrees: $(rf . ntrees) " )
265
+ println (io, " max_depth: $(rf . max_depth) " )
266
+ println (io, " nsubfeatures: $(rf . nsubfeatures) " )
267
+ println (io, " partialsampling: $(rf . partialsampling) " )
268
+ println (io, " min_samples_leaf: $(rf . min_samples_leaf) " )
269
+ println (io, " ensemble: $(rf . ensemble) " )
270
270
end
271
271
272
272
# ###############################################################################
@@ -311,12 +311,12 @@ predict(ada::AdaBoostStumpClassifier, X) =
311
311
predict_proba (ada:: AdaBoostStumpClassifier , X) =
312
312
apply_adaboost_stumps_proba (ada. ensemble, ada. coeffs, X, ada. classes)
313
313
314
- function show (io:: IO , dt :: AdaBoostStumpClassifier )
314
+ function show (io:: IO , ada :: AdaBoostStumpClassifier )
315
315
println (io, " AdaBoostStumpClassifier" )
316
- println (io, " niterations: $(dt . niterations) " )
317
- println (io, " coeffs: $(dt . coeffs) " )
318
- println (io, " classes: $(dt . classes) " )
319
- println (io, " ensemble: $(dt . ensemble) " )
316
+ println (io, " niterations: $(ada . niterations) " )
317
+ println (io, " coeffs: $(ada . coeffs) " )
318
+ println (io, " classes: $(ada . classes) " )
319
+ println (io, " ensemble: $(ada . ensemble) " )
320
320
end
321
321
322
322
# ###############################################################################
0 commit comments