Skip to content

RandomForestModel object has no attribute 'predict_class' #144

Open
@sermomon

Description

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'**

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions