Skip to content

Commit 8c22202

Browse files
committed
Update package to the newest scikit-learn version
Update of the package to the newest scikit-learn version 0.21.2 that requires the MultiOutputMixin base class to ensure compatibility with the scikit-learn pipeline. modified: mbpls/__init__.py modified: mbpls/mbpls.py modified: setup.py
1 parent d2354ee commit 8c22202

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

mbpls/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222

2323
__all__ = ["mbpls", "data"]
2424

25-
__version__ = "1.0.1"
25+
__version__ = "1.0.2"

mbpls/mbpls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# License: 3-clause BSD
88

99

10-
from sklearn.base import BaseEstimator, RegressorMixin, TransformerMixin
10+
from sklearn.base import BaseEstimator, RegressorMixin, TransformerMixin, MultiOutputMixin
1111
from sklearn.utils.validation import check_X_y, check_array, check_is_fitted, check_consistent_length
1212
from sklearn import metrics
1313
import numpy as np
@@ -18,7 +18,7 @@
1818
__all__ = ['MBPLS']
1919

2020

21-
class MBPLS(BaseEstimator, TransformerMixin, RegressorMixin):
21+
class MBPLS(BaseEstimator, TransformerMixin, RegressorMixin, MultiOutputMixin):
2222
"""(Multiblock) PLS regression for predictive modelling using latent variables
2323
--------------------------------------------------------------------------
2424

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# This is the lowest tested version. Below might work as well
2323
NUMPY_MIN_VERSION = '1.13.3'
2424
SCIPY_MIN_VERSION = '1.0.0'
25-
SCIKIT_LEARN_MIN_VERSION = '0.20.0'
25+
SCIKIT_LEARN_MIN_VERSION = '0.21.2'
2626
PANDAS_MIN_VERSION = '0.20.0'
2727

2828
def setup_package():

0 commit comments

Comments
 (0)