cerlymarco / linear-tree

A python library to build Model Trees with Linear Models at the leaves.
MIT License
338 stars 54 forks source link

AttributeError: 'LinearTreeRegressor' object has no attribute '_validate_data' #7

Closed ShrinathVis closed 2 years ago

ShrinathVis commented 2 years ago

Got this error when trying to follow examples to train model

cerlymarco commented 2 years ago

You simply need to update your sklearn to Version 0.23 or higher

This is specified in the requirements.txt: https://github.com/cerlymarco/linear-tree/blob/e47bd01afaad3c2f67432b5f853e51dc67a9884a/requirements.txt#L3

If you support the project don't forget to leave a star ;-)