unifiedbooster 0.9.0__tar.gz → 0.10.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.
Files changed (29) hide show
  1. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/PKG-INFO +1 -1
  2. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/setup.py +3 -1
  3. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/unifiedbooster/gbdt_classification.py +23 -5
  4. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/unifiedbooster/gbdt_regression.py +24 -2
  5. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/unifiedbooster.egg-info/PKG-INFO +1 -1
  6. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/LICENSE +0 -0
  7. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/README.md +0 -0
  8. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/setup.cfg +0 -0
  9. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/unifiedbooster/__init__.py +0 -0
  10. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/unifiedbooster/gbdt.py +0 -0
  11. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/unifiedbooster/gpoptimization.py +0 -0
  12. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/unifiedbooster/nonconformist/__init__.py +0 -0
  13. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/unifiedbooster/nonconformist/acp.py +0 -0
  14. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/unifiedbooster/nonconformist/base.py +0 -0
  15. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/unifiedbooster/nonconformist/cp.py +0 -0
  16. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/unifiedbooster/nonconformist/evaluation.py +0 -0
  17. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/unifiedbooster/nonconformist/icp.py +0 -0
  18. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/unifiedbooster/nonconformist/nc.py +0 -0
  19. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/unifiedbooster/nonconformist/util.py +0 -0
  20. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/unifiedbooster/predictioninterval/__init__.py +0 -0
  21. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/unifiedbooster/predictioninterval/predictioninterval.py +0 -0
  22. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/unifiedbooster/predictionset/__init__.py +0 -0
  23. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/unifiedbooster/predictionset/predictionset.py +0 -0
  24. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/unifiedbooster.egg-info/SOURCES.txt +0 -0
  25. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/unifiedbooster.egg-info/dependency_links.txt +0 -0
  26. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/unifiedbooster.egg-info/entry_points.txt +0 -0
  27. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/unifiedbooster.egg-info/not-zip-safe +0 -0
  28. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/unifiedbooster.egg-info/requires.txt +0 -0
  29. {unifiedbooster-0.9.0 → unifiedbooster-0.10.1}/unifiedbooster.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: unifiedbooster
3
- Version: 0.9.0
3
+ Version: 0.10.1
4
4
  Summary: Unified interface for Gradient Boosted Decision Trees
5
5
  Home-page: https://github.com/thierrymoudiki/unifiedbooster
6
6
  Author: T. Moudiki
@@ -7,7 +7,9 @@ from setuptools import setup, find_packages
7
7
  from codecs import open
8
8
  from os import path
9
9
 
10
- __version__ = "0.9.0"
10
+ # subprocess.check_call(['pip', 'install', 'Cython'])
11
+
12
+ __version__ = "0.10.1"
11
13
 
12
14
  here = path.abspath(path.dirname(__file__))
13
15
 
@@ -135,9 +135,19 @@ class GBDTClassifier(GBDT, ClassifierMixin):
135
135
  level=self.level,
136
136
  method=self.pi_method,
137
137
  )
138
- elif model_type in ("catboost", "cb"):
138
+ elif model_type == "catboost":
139
+
140
+ fast_cb = dict(
141
+ thread_count=-1,
142
+ boosting_type="Plain",
143
+ grow_policy="Depthwise",
144
+ bootstrap_type="Bernoulli",
145
+ subsample=0.8,
146
+ verbose=False
147
+ )
148
+
139
149
  self.model = PredictionSet(
140
- CatBoostClassifier(**self.params),
150
+ CatBoostClassifier(**self.params, **fast_cb),
141
151
  level=self.level,
142
152
  method=self.pi_method,
143
153
  )
@@ -160,9 +170,17 @@ class GBDTClassifier(GBDT, ClassifierMixin):
160
170
 
161
171
  if model_type in ("xgboost", "xgb"):
162
172
  self.model = XGBClassifier(**self.params)
163
- elif model_type in ("catboost", "cb"):
164
- self.model = CatBoostClassifier(**self.params)
165
- elif model_type in ("lightgbm", "lgb"):
173
+ elif model_type == "catboost":
174
+ fast_cb = dict(
175
+ thread_count=-1,
176
+ boosting_type="Plain",
177
+ grow_policy="Depthwise",
178
+ bootstrap_type="Bernoulli",
179
+ subsample=0.8,
180
+ verbose=False
181
+ )
182
+ self.model = CatBoostClassifier(**self.params, **fast_cb)
183
+ elif model_type == "lightgbm":
166
184
  self.model = LGBMClassifier(**self.params)
167
185
  elif model_type in ("gradientboosting", "gb"):
168
186
  self.model = GradientBoostingClassifier(**self.params)
@@ -142,9 +142,17 @@ class GBDTRegressor(GBDT, RegressorMixin):
142
142
  method=self.pi_method,
143
143
  type_split=self.type_split
144
144
  )
145
- elif model_type in ("catboost", "cb"):
145
+ elif model_type == "catboost":
146
+ fast_cb = dict(
147
+ thread_count=-1,
148
+ boosting_type="Plain",
149
+ grow_policy="Depthwise",
150
+ bootstrap_type="Bernoulli",
151
+ subsample=0.8,
152
+ verbose=False
153
+ )
146
154
  self.model = PredictionInterval(
147
- CatBoostRegressor(**self.params),
155
+ CatBoostRegressor(**self.params, **fast_cb),
148
156
  level=self.level,
149
157
  method=self.pi_method,
150
158
  type_split=self.type_split
@@ -170,9 +178,23 @@ class GBDTRegressor(GBDT, RegressorMixin):
170
178
 
171
179
  if model_type in ("xgboost", "xgb"):
172
180
  self.model = XGBRegressor(**self.params)
181
+ <<<<<<< HEAD
182
+ elif model_type == "catboost":
183
+ fast_cb = dict(
184
+ thread_count=-1,
185
+ boosting_type="Plain",
186
+ grow_policy="Depthwise",
187
+ bootstrap_type="Bernoulli",
188
+ subsample=0.8,
189
+ verbose=False
190
+ )
191
+ self.model = CatBoostRegressor(**self.params, **fast_cb)
192
+ elif model_type == "lightgbm":
193
+ =======
173
194
  elif model_type in ("catboost", "cb"):
174
195
  self.model = CatBoostRegressor(**self.params)
175
196
  elif model_type in ("lightgbm", "lgb"):
197
+ >>>>>>> 0c97427b8cbd66d509a3cc24747eeea8b157779d
176
198
  self.model = LGBMRegressor(**self.params)
177
199
  elif model_type in ("gradientboosting", "gb"):
178
200
  self.model = GradientBoostingRegressor(**self.params)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: unifiedbooster
3
- Version: 0.9.0
3
+ Version: 0.10.1
4
4
  Summary: Unified interface for Gradient Boosted Decision Trees
5
5
  Home-page: https://github.com/thierrymoudiki/unifiedbooster
6
6
  Author: T. Moudiki
File without changes