From 3bc2e3923966329c2ad99d34442a3bdd1152af45 Mon Sep 17 00:00:00 2001 From: hakatGH <51356419+hakatGH@users.noreply.github.com> Date: Fri, 17 Jul 2020 15:56:46 +0900 Subject: [PATCH 1/4] Update pystacknet.py --- pystacknet/pystacknet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pystacknet/pystacknet.py b/pystacknet/pystacknet.py index 356f77e..4d4b967 100644 --- a/pystacknet/pystacknet.py +++ b/pystacknet/pystacknet.py @@ -19,7 +19,7 @@ from sklearn.model_selection import KFold from sklearn.utils import check_X_y,check_array,check_consistent_length, column_or_1d import inspect -from sklearn.externals.joblib import delayed,Parallel +from joblib import delayed,Parallel import operator import time from sklearn.preprocessing import LabelEncoder From e44b591a94933e1130859fdb8b1243701a248642 Mon Sep 17 00:00:00 2001 From: hakatGH <51356419+hakatGH@users.noreply.github.com> Date: Fri, 17 Jul 2020 17:26:46 +0900 Subject: [PATCH 2/4] Update pystacknet.py --- pystacknet/pystacknet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pystacknet/pystacknet.py b/pystacknet/pystacknet.py index 4d4b967..d824053 100644 --- a/pystacknet/pystacknet.py +++ b/pystacknet/pystacknet.py @@ -97,7 +97,7 @@ def _parallel_predict_proba_scoring(estimators, X, index): raise Exception (" predictions' shape not equal among estimators within the batch as %d!=%d " % (predictions.shape[1],preds.shape[1])) preds+=predictions - preds/=float(len(estimators)) + preds= np.true_divide(preds,float(len(estimators))) return preds,index From 58be0d5a0cc030b5a115f1501abdcfedb6bab3f3 Mon Sep 17 00:00:00 2001 From: hakatGH <51356419+hakatGH@users.noreply.github.com> Date: Mon, 20 Jul 2020 14:19:15 +0900 Subject: [PATCH 3/4] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index cab00f8..774c7a7 100644 --- a/README.md +++ b/README.md @@ -88,3 +88,7 @@ random_state | Integer for randomised procedures n_jobs | Number of models to run in parallel. This is independent of any extra threads allocated n_jobs | Number of models to run in parallel. This is independent of any extra threads allocated from the selected algorithms. e.g. it is possible to run 4 models in parallel where one is a randomforest that runs on 10 threads (it selected). verbose | Integer value higher than zero to allow printing at the console. + + ------------------------------------------------------------------------------------------------- + I fix it for sklearn 0.23.0 + now It works greatly :) From 02c90bd52a8477986d7a1db33b64e3a4385ff72c Mon Sep 17 00:00:00 2001 From: hakatGH <51356419+hakatGH@users.noreply.github.com> Date: Mon, 20 Jul 2020 14:19:36 +0900 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 774c7a7..a4b3758 100644 --- a/README.md +++ b/README.md @@ -90,5 +90,5 @@ n_jobs | Number of models to run in parallel. This is independent of any ext verbose | Integer value higher than zero to allow printing at the console. ------------------------------------------------------------------------------------------------- - I fix it for sklearn 0.23.0 + I fixed it for sklearn 0.23.0 now It works greatly :)