AmazaspShumik / sklearn-bayes

Python package for Bayesian Machine Learning with scikit-learn API
MIT License
513 stars 118 forks source link

pinvh deprecated in scikit-learn 0.19 removed in 0.21 #44

Open MattWenham opened 4 years ago

MattWenham commented 4 years ago

utils.extmath.pinvh was deprecated in scikit-learn version 0.19 and removed in version 0.21. The following error therefore occurs when using scikit-lean >= 0.21:

~\AppData\Local\Continuum\anaconda3\envs\chemo2\lib\site-packages\skbayes\rvm_ard_models\fast_rvm.py in <module>
      5 from sklearn.utils import check_X_y,check_array,as_float_array
      6 from sklearn.utils.multiclass import check_classification_targets
----> 7 from sklearn.utils.extmath import pinvh,log_logistic,safe_sparse_dot
      8 from sklearn.metrics.pairwise import pairwise_kernels
      9 from sklearn.utils.validation import check_is_fitted

ImportError: cannot import name 'pinvh'
AmazaspShumik commented 4 years ago

Sorry, I was not actively working on this package for some time, so it needs work. I will have a look at this on the weekend, should be able to fix that.