unifiedbooster 0.1.0__tar.gz → 0.1.2__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.2
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.2"
14
14
 
15
15
  here = path.abspath(path.dirname(__file__))
16
16
 
@@ -24,7 +24,7 @@ class GBDTClassifier(BaseEstimator, ClassifierMixin):
24
24
  # subsample
25
25
  # max_depth
26
26
  # lightgbm -----
27
- # num_iterations
27
+ # n_estimators
28
28
  # learning_rate
29
29
  # bagging_fraction
30
30
  # max_depth
@@ -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
- 'num_iterations': self.n_estimators,
48
+ 'n_estimators': 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,14 +58,14 @@ 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
 
64
65
  if model_type == 'xgboost':
65
66
  self.model = XGBClassifier(**self.params)
66
67
  elif model_type == 'catboost':
67
- self.model = CatBoostClassifier(**self.params, logging_level='Silent')
68
+ self.model = CatBoostClassifier(**self.params)
68
69
  elif model_type == 'lightgbm':
69
70
  self.model = LGBMClassifier(**self.params)
70
71
  else:
@@ -24,7 +24,7 @@ class GBDTRegressor(BaseEstimator, RegressorMixin):
24
24
  # subsample
25
25
  # max_depth
26
26
  # lightgbm -----
27
- # num_iterations
27
+ # n_estimators
28
28
  # learning_rate
29
29
  # bagging_fraction
30
30
  # max_depth
@@ -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
- 'num_iterations': self.n_estimators,
48
+ 'n_estimators': 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,14 +58,14 @@ 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
 
64
65
  if model_type == 'xgboost':
65
66
  self.model = XGBRegressor(**self.params)
66
67
  elif model_type == 'catboost':
67
- self.model = CatBoostRegressor(**self.params, logging_level='Silent')
68
+ self.model = CatBoostRegressor(**self.params)
68
69
  elif model_type == 'lightgbm':
69
70
  self.model = LGBMRegressor(**self.params)
70
71
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unifiedbooster
3
- Version: 0.1.0
3
+ Version: 0.1.2
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