We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c041a5 commit ca15056Copy full SHA for ca15056
forestci/forestci.py
@@ -316,7 +316,7 @@ def random_forest_error(
316
of Machine Learning Research vol. 15, pp. 1625-1651, 2014.
317
"""
318
319
- if forest.n_outputs_ > 1 and y_output == None:
+ if 'n_outputs_' in dir(forest) and forest.n_outputs_ > 1 and y_output == None:
320
e_s = "MultiOutput regressor: specify the index of the target to analyse (y_output)"
321
raise ValueError(e_s)
322
0 commit comments