unifiedbooster 0.1.0__tar.gz → 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unifiedbooster
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Call R functions from Python
5
5
  Home-page: https://github.com/thierrymoudiki/unifiedbooster
6
6
  Author: T. Moudiki
@@ -10,7 +10,7 @@ from os import path
10
10
 
11
11
  subprocess.check_call(['pip', 'install', 'Cython'])
12
12
 
13
- __version__ = "0.1.0"
13
+ __version__ = "0.1.1"
14
14
 
15
15
  here = path.abspath(path.dirname(__file__))
16
16
 
@@ -43,12 +43,13 @@ class GBDTClassifier(BaseEstimator, ClassifierMixin):
43
43
  **kwargs
44
44
  }
45
45
  elif self.model_type == "lightgbm":
46
+ verbose = self.verbosity - 1 if self.verbosity==0 else self.verbosity
46
47
  self.params = {
47
48
  'num_iterations': self.n_estimators,
48
49
  'learning_rate': self.learning_rate,
49
50
  'bagging_fraction': self.subsample,
50
51
  'max_depth': self.max_depth,
51
- 'verbose': self.verbosity - 1 if self.verbosity==0 else self.verbosity
52
+ 'verbose': verbose,
52
53
  **kwargs
53
54
  }
54
55
  elif self.model_type == "catboost":
@@ -57,7 +58,7 @@ class GBDTClassifier(BaseEstimator, ClassifierMixin):
57
58
  'learning_rate': self.learning_rate,
58
59
  'rsm': self.subsample,
59
60
  'depth': self.max_depth,
60
- 'verbose': self.verbosity
61
+ 'verbose': self.verbosity,
61
62
  **kwargs
62
63
  }
63
64
 
@@ -43,12 +43,13 @@ class GBDTRegressor(BaseEstimator, RegressorMixin):
43
43
  **kwargs
44
44
  }
45
45
  elif self.model_type == "lightgbm":
46
+ verbose = self.verbosity - 1 if self.verbosity==0 else self.verbosity
46
47
  self.params = {
47
48
  'num_iterations': self.n_estimators,
48
49
  'learning_rate': self.learning_rate,
49
50
  'bagging_fraction': self.subsample,
50
51
  'max_depth': self.max_depth,
51
- 'verbose': self.verbosity - 1 if self.verbosity==0 else self.verbosity
52
+ 'verbose': verbose,
52
53
  **kwargs
53
54
  }
54
55
  elif self.model_type == "catboost":
@@ -57,7 +58,7 @@ class GBDTRegressor(BaseEstimator, RegressorMixin):
57
58
  'learning_rate': self.learning_rate,
58
59
  'rsm': self.subsample,
59
60
  'depth': self.max_depth,
60
- 'verbose': self.verbosity
61
+ 'verbose': self.verbosity,
61
62
  **kwargs
62
63
  }
63
64
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unifiedbooster
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Call R functions from Python
5
5
  Home-page: https://github.com/thierrymoudiki/unifiedbooster
6
6
  Author: T. Moudiki
File without changes
File without changes