saezlab/liana-py

Import Error: Cannot Import name RandomForestModel

Closed this issue · 3 comments

Hello,

I have been following the Misty tutorial, and came across this bug:

This is the version of liana-py installed:

pip install liana[full]

from liana.method.sp import RandomForestModel, LinearModel, RobustLinearModel

ImportError: cannot import name 'RandomForestModel' from 'liana.method.sp'

Please any help or directions will be appreciated.

Best,
poloarol

Hi @poloarol, is it possible that you're not using the latest liana version - i.e. 1.2.0?

please run:
pip install liana --upgrade, if this doesn't work then there might be an issue.

Hello!

Thanks re-installation worked.

Great. Feel free to open other issues if questions arise :))