nilmtk / nilmtk-contrib

Apache License 2.0
114 stars 59 forks source link

CHanging package dependencies #71

Open habring opened 2 years ago

habring commented 2 years ago

Hey there,

I want to use the discriminative sparse coding method and get the error:

ValueError: Positive constraint not supported for 'lars' coding method.

I could solve this issue by downgrading scikit-learn. I had a similar issue with cvxpy. I recommend, setting the dependencies to

scikit-learn=0.21 (already required by NILMTK) cvxpy=1.0.0

instead of

scikit-learn>=0.21 (already required by NILMTK) cvxpy>=1.0.0

Best, Andi