perpetual 0.9.2__cp313-cp313-macosx_11_0_arm64.whl → 0.9.3__cp313-cp313-macosx_11_0_arm64.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 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
- raise NotImplementedError(
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
- raise NotImplementedError(
528
- "predict_log_proba not implemented for regression."
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: perpetual
3
- Version: 0.9.2
3
+ Version: 0.9.3
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: Programming Language :: Python :: 3.9
@@ -0,0 +1,11 @@
1
+ perpetual-0.9.3.dist-info/METADATA,sha256=LMtEPPxeAQVXSo8ZFIg-GeyMU8m9lBgChGw5qxSGoBE,10594
2
+ perpetual-0.9.3.dist-info/WHEEL,sha256=UPfJ7S-gMCqCJ6cj5sliE010L87pWgiShNoxmys5TN4,104
3
+ perpetual-0.9.3.dist-info/licenses/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
4
+ perpetual/__init__.py,sha256=zzFLkwRr8No7DPUNUQlBXdsdGfT7KEt4orHozdZhS7c,116
5
+ perpetual/booster.py,sha256=4MX7fahwGk4dKVGqZA-_OINw88F03EEoYLFCabUoms4,49863
6
+ perpetual/data.py,sha256=OCuRbjmaY73fOqm_MnI8mgQxAH70cpSOpYaXauaELvs,605
7
+ perpetual/perpetual.cpython-313-darwin.so,sha256=VPP16q6Nw4CirK_rJ1x1HOIWt1Wju_Ngx6JiYe6dDtY,1572448
8
+ perpetual/serialize.py,sha256=Tg2BbuA1jKQ5-ITuVhwtj6hgBaRAbZ66eHctR7fcVk4,1883
9
+ perpetual/types.py,sha256=vBwsX2XnSC8RqdmP2Mr6hDljgWhgGNS6OsuBZM1QdW0,3231
10
+ perpetual/utils.py,sha256=UCY_w5FNOsgn7NKWiLy2uWzYgDdFRTLgRfIM2iAWf8w,7269
11
+ perpetual-0.9.3.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: maturin (1.8.3)
2
+ Generator: maturin (1.8.6)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp313-cp313-macosx_11_0_arm64
@@ -1,11 +0,0 @@
1
- perpetual-0.9.2.dist-info/METADATA,sha256=NlTfDab-nr18D6f7OzkKkMyWoY6VjAE-isSkO1yWjXY,10594
2
- perpetual-0.9.2.dist-info/WHEEL,sha256=_czbP61TsBkf9T201RekHMHlqESnWn7yJwXBJC9P-w0,104
3
- perpetual-0.9.2.dist-info/licenses/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
4
- perpetual/serialize.py,sha256=Tg2BbuA1jKQ5-ITuVhwtj6hgBaRAbZ66eHctR7fcVk4,1883
5
- perpetual/__init__.py,sha256=zzFLkwRr8No7DPUNUQlBXdsdGfT7KEt4orHozdZhS7c,116
6
- perpetual/types.py,sha256=vBwsX2XnSC8RqdmP2Mr6hDljgWhgGNS6OsuBZM1QdW0,3231
7
- perpetual/utils.py,sha256=UCY_w5FNOsgn7NKWiLy2uWzYgDdFRTLgRfIM2iAWf8w,7269
8
- perpetual/data.py,sha256=OCuRbjmaY73fOqm_MnI8mgQxAH70cpSOpYaXauaELvs,605
9
- perpetual/booster.py,sha256=4MUhDPH3IupGjEwiwPF0plCx0x0MdqVQL42hVCCju_8,49702
10
- perpetual/perpetual.cpython-313-darwin.so,sha256=P-c3Kb8m8kO-Jq_tQLnnehxiqgtj1otocRuCD461UMg,1522848
11
- perpetual-0.9.2.dist-info/RECORD,,