Closed bingyue0610 closed 5 years ago
It has been resolved! Thank you!
It has been resolved! Thank you! Can I know how you solved it? I'm also getting this error now.
Hi,
scikit-learn
is a dependency of the package and is installed when you install pyts
. sklearn.preprocessing.PowerTransformer has been added in scikit-learn==0.20
and pyts
requires scikit-learn>=0.22
, so it should be available.
Can you please give the versions of the these packages?
import pyts; print("pyts", pyts.__version__)
import sklearn; print("scikit-learn", sklearn.__version__)
Thank you! I have resolve it!
------------------ 原始邮件 ------------------ 发件人: "johannfaouzi/pyts" @.>; 发送时间: 2022年12月5日(星期一) 下午5:54 @.>; @.**@.>; 主题: Re: [johannfaouzi/pyts] ImportError: cannot import name 'PowerTransformer' (#26)
Hi,
scikit-learn is a dependency of the package and is installed when you install pyts. sklearn.preprocessing.PowerTransformer has been added in scikit-learn==0.20 and pyts requires scikit-learn>=0.22, so it should be available.
Can you please give the versions of the these packages? import pyts; print("pyts", pyts.version) import sklearn; print("scikit-learn", sklearn.version)
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
Description
Steps/Code to Reproduce
Versions