From 38025753369ec30161dc123337cdea84247d7b08 Mon Sep 17 00:00:00 2001 From: Markus Date: Wed, 12 Apr 2017 13:04:12 -0500 Subject: [PATCH 1/2] Fixed deprecated method The sklearn libs replaced the name of a method. --- random_layer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/random_layer.py b/random_layer.py index 713a795..52f459e 100644 --- a/random_layer.py +++ b/random_layer.py @@ -24,7 +24,7 @@ from scipy.spatial.distance import cdist, pdist, squareform from sklearn.metrics import pairwise_distances -from sklearn.utils import check_random_state, atleast2d_or_csr +from sklearn.utils import check_random_state, check_array from sklearn.utils.extmath import safe_sparse_dot from sklearn.base import BaseEstimator, TransformerMixin @@ -108,7 +108,7 @@ def fit(self, X, y=None): ------- self """ - X = atleast2d_or_csr(X) + X = check_array(X) self._generate_components(X) @@ -130,7 +130,7 @@ def transform(self, X, y=None): ------- X_new : numpy array of shape [n_samples, n_components] """ - X = atleast2d_or_csr(X) + X = check_array(X) if (self.components_ is None): raise ValueError('No components initialized') From 13056408525541ef0ba574dbccf68b23ed4d6e10 Mon Sep 17 00:00:00 2001 From: Markus Date: Wed, 12 Apr 2017 13:09:34 -0500 Subject: [PATCH 2/2] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 2f37fd4..0626994 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +Note: This is a fork I made that updated Python-ELM to work with the latest version of Scikit-Learn (sklearn) + + Python-ELM v0.3 ===============