RandomForestModel object has no attribute 'predict_class' #144
Open
Description
opened on Nov 7, 2024
I am trying to replicate the following example of classification with Random Forests that is provided in the documentation: Classification - YDF documentation
There is an error in the last line of code in the example:
model.predict_class(test_ds)
**---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[26], line 1
----> 1 model.predict_class(test_ds)
AttributeError: 'RandomForestModel' object has no attribute 'predict_class'**
Metadata
Assignees
Labels
No labels
Activity