lightonai / lightonml

Python library for running large-scale computations on LightOn's OPUs
https://docs.lighton.ai
Other
35 stars 11 forks source link

Missing functions in lightonml.encoding.base to run randomized_svd example #5

Open ELSmi opened 2 years ago

ELSmi commented 2 years ago

I get the following error trying to run the mentioned example on the aurora server and on my local machine:

ImportError Traceback (most recent call last) /tmp/ipykernel_142/3688653586.py in 9 10 from lightonml.datasets import movielens20m ---> 11 from lightonml.encoding.base import SeparatedBitPlanEncoder, MixingBitPlanDecoder 12 from lightonml.projections.sklearn import OPUMap 13 from lightonopu.opu import OPU

ImportError: cannot import name 'MixingBitPlanDecoder' from 'lightonml.encoding.base' (/home/opu/.conda/envs/opu-base/lib/python3.9/site-packages/lightonml/encoding/base.py)

I looked in the base file and couldn't see a corresponding MixingBitPlanDecoder function.