perpetual 0.9.2__cp312-cp312-win_amd64.whl → 0.9.3__cp312-cp312-win_amd64.whl
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.
Potentially problematic release.
This version of perpetual might be problematic. Click here for more details.
- perpetual/booster.py +7 -5
- perpetual/perpetual.cp312-win_amd64.pyd +0 -0
- {perpetual-0.9.2.dist-info → perpetual-0.9.3.dist-info}/METADATA +1 -1
- perpetual-0.9.3.dist-info/RECORD +11 -0
- {perpetual-0.9.2.dist-info → perpetual-0.9.3.dist-info}/WHEEL +1 -1
- perpetual-0.9.2.dist-info/RECORD +0 -11
- {perpetual-0.9.2.dist-info → perpetual-0.9.3.dist-info}/licenses/LICENSE +0 -0
perpetual/booster.py
CHANGED
|
@@ -65,7 +65,9 @@ class PerpetualBooster:
|
|
|
65
65
|
objective (str, optional): Learning objective function to be used for optimization. Valid options are:
|
|
66
66
|
"LogLoss" to use logistic loss (classification),
|
|
67
67
|
"SquaredLoss" to use squared error (regression),
|
|
68
|
-
"QuantileLoss" to use quantile error (regression)
|
|
68
|
+
"QuantileLoss" to use quantile error (regression),
|
|
69
|
+
"HuberLoss" to use huber error (regression),
|
|
70
|
+
"AdaptiveHuberLoss" to use adaptive huber error (regression).
|
|
69
71
|
Defaults to "LogLoss".
|
|
70
72
|
budget (float, optional): a positive number for fitting budget. Increasing this number will more
|
|
71
73
|
likely result in more boosting rounds and more increased predictive power.
|
|
@@ -488,9 +490,10 @@ class PerpetualBooster:
|
|
|
488
490
|
axis=1,
|
|
489
491
|
)
|
|
490
492
|
else:
|
|
491
|
-
|
|
493
|
+
warnings.warn(
|
|
492
494
|
f"predict_proba not implemented for regression. n_classes = {len(self.classes_)}"
|
|
493
495
|
)
|
|
496
|
+
return np.ones((rows, 1))
|
|
494
497
|
|
|
495
498
|
def predict_log_proba(self, X, parallel: Union[bool, None] = None) -> np.ndarray:
|
|
496
499
|
"""Predict class log-probabilities with the fitted booster on new data.
|
|
@@ -524,9 +527,8 @@ class PerpetualBooster:
|
|
|
524
527
|
parallel=parallel,
|
|
525
528
|
)
|
|
526
529
|
else:
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
)
|
|
530
|
+
warnings.warn("predict_log_proba not implemented for regression.")
|
|
531
|
+
return np.ones((rows, 1))
|
|
530
532
|
|
|
531
533
|
def predict_nodes(self, X, parallel: Union[bool, None] = None) -> List:
|
|
532
534
|
"""Predict nodes with the fitted booster on new data.
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
perpetual-0.9.3.dist-info/METADATA,sha256=1PH5g2LNJbSHolaxekCbvZtrbSiOKP-8DYeh4SUvzJ8,10724
|
|
2
|
+
perpetual-0.9.3.dist-info/WHEEL,sha256=YpU2aDuTyBIvwRZn8idqScP-vkQ8DUGkCILtYmMfnFY,96
|
|
3
|
+
perpetual-0.9.3.dist-info/licenses/LICENSE,sha256=gcuuhKKc5-dwvyvHsXjlC9oM6N5gZ6umYbC8ewW1Yvg,35821
|
|
4
|
+
perpetual/__init__.py,sha256=V0RhghaG0CuKxKrzYUBYqrf7Drb-gjmznsbz9KT12lk,122
|
|
5
|
+
perpetual/booster.py,sha256=vyZxchCqvPV79At-yoOVMLvCGdv8xISk2wq_Yu90DrI,50929
|
|
6
|
+
perpetual/data.py,sha256=vhjWEc_ESYWoaczz0GkUPtfS0iRSKdVZSrCkQn8yLPw,630
|
|
7
|
+
perpetual/perpetual.cp312-win_amd64.pyd,sha256=DHa3TLk1wUHAwmsC--dl-MQp2CqEBZgfilYfLgnnN24,1741312
|
|
8
|
+
perpetual/serialize.py,sha256=FeW4JsUFVsrft9N7gz-ebn5mXvDv4LiJC2sgBEeGxYo,1957
|
|
9
|
+
perpetual/types.py,sha256=idZNsDErNTur_rJ_5Co8Pb6fik-AUn9lkrXmjbQJVX0,3381
|
|
10
|
+
perpetual/utils.py,sha256=2ifo-9OXaeZBevSo0HKN4uKVy5qT4LqRAchrtZa9yMM,7486
|
|
11
|
+
perpetual-0.9.3.dist-info/RECORD,,
|
perpetual-0.9.2.dist-info/RECORD
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
perpetual-0.9.2.dist-info/METADATA,sha256=wD6r7qZkSXxugwCB3m_HqGb4bwEhSOunKLDkRj2TDFo,10724
|
|
2
|
-
perpetual-0.9.2.dist-info/WHEEL,sha256=jABKVkLC9kJr8mi_er5jOqpiQUjARSLXDUIIxDqsS50,96
|
|
3
|
-
perpetual-0.9.2.dist-info/licenses/LICENSE,sha256=gcuuhKKc5-dwvyvHsXjlC9oM6N5gZ6umYbC8ewW1Yvg,35821
|
|
4
|
-
perpetual/booster.py,sha256=Osg6TrJPYJyZzez3y91BZJx73a1RpFIh9CxTjAJVwPo,50766
|
|
5
|
-
perpetual/data.py,sha256=vhjWEc_ESYWoaczz0GkUPtfS0iRSKdVZSrCkQn8yLPw,630
|
|
6
|
-
perpetual/serialize.py,sha256=FeW4JsUFVsrft9N7gz-ebn5mXvDv4LiJC2sgBEeGxYo,1957
|
|
7
|
-
perpetual/types.py,sha256=idZNsDErNTur_rJ_5Co8Pb6fik-AUn9lkrXmjbQJVX0,3381
|
|
8
|
-
perpetual/utils.py,sha256=2ifo-9OXaeZBevSo0HKN4uKVy5qT4LqRAchrtZa9yMM,7486
|
|
9
|
-
perpetual/__init__.py,sha256=V0RhghaG0CuKxKrzYUBYqrf7Drb-gjmznsbz9KT12lk,122
|
|
10
|
-
perpetual/perpetual.cp312-win_amd64.pyd,sha256=Js6wnKidXwnSmOG6Afuw4gg9ybnQsdxeDfIODXGb1Ms,1700864
|
|
11
|
-
perpetual-0.9.2.dist-info/RECORD,,
|
|
File without changes
|