Skip to content

Commit ca15056

Browse files
committed
fix test for BaggingRegressor
1 parent 5c041a5 commit ca15056

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

forestci/forestci.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def random_forest_error(
316316
of Machine Learning Research vol. 15, pp. 1625-1651, 2014.
317317
"""
318318

319-
if forest.n_outputs_ > 1 and y_output == None:
319+
if 'n_outputs_' in dir(forest) and forest.n_outputs_ > 1 and y_output == None:
320320
e_s = "MultiOutput regressor: specify the index of the target to analyse (y_output)"
321321
raise ValueError(e_s)
322322

0 commit comments

Comments
 (0)