perpetual 0.8.0__cp313-none-win_amd64.whl → 0.8.1__cp313-none-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 +10 -3
- perpetual/perpetual.cp313-win_amd64.pyd +0 -0
- {perpetual-0.8.0.dist-info → perpetual-0.8.1.dist-info}/METADATA +3 -17
- perpetual-0.8.1.dist-info/RECORD +12 -0
- perpetual-0.8.0.dist-info/RECORD +0 -12
- {perpetual-0.8.0.dist-info → perpetual-0.8.1.dist-info}/WHEEL +0 -0
- {perpetual-0.8.0.dist-info → perpetual-0.8.1.dist-info}/license_files/LICENSE +0 -0
perpetual/booster.py
CHANGED
|
@@ -32,7 +32,6 @@ class PerpetualBooster:
|
|
|
32
32
|
"feature_importance_method": ObjectSerializer(),
|
|
33
33
|
"cat_mapping": ObjectSerializer(),
|
|
34
34
|
"classes_": ObjectSerializer(),
|
|
35
|
-
# "categorical_features": ObjectSerializer(),
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
def __init__(
|
|
@@ -793,7 +792,10 @@ class PerpetualBooster:
|
|
|
793
792
|
Returns:
|
|
794
793
|
PerpetualBooster: An initialized booster object.
|
|
795
794
|
"""
|
|
796
|
-
|
|
795
|
+
try:
|
|
796
|
+
booster = CratePerpetualBooster.load_booster(str(path))
|
|
797
|
+
except ValueError:
|
|
798
|
+
booster = CrateMultiOutputBooster.load_booster(str(path))
|
|
797
799
|
|
|
798
800
|
params = booster.get_params()
|
|
799
801
|
with warnings.catch_warnings():
|
|
@@ -904,7 +906,12 @@ class PerpetualBooster:
|
|
|
904
906
|
|
|
905
907
|
def __setstate__(self, d: Dict[Any, Any]) -> None:
|
|
906
908
|
# Load the booster object the pickled JSon string.
|
|
907
|
-
|
|
909
|
+
try:
|
|
910
|
+
booster_object = CratePerpetualBooster.from_json(d["__booster_json_file__"])
|
|
911
|
+
except ValueError:
|
|
912
|
+
booster_object = CrateMultiOutputBooster.from_json(
|
|
913
|
+
d["__booster_json_file__"]
|
|
914
|
+
)
|
|
908
915
|
d["booster"] = booster_object
|
|
909
916
|
# Are there any new parameters, that need to be added to the python object,
|
|
910
917
|
# that would have been loaded in as defaults on the json object?
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: perpetual
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.1
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: 3
|
|
6
6
|
Classifier: Programming Language :: Python :: 3.9
|
|
@@ -59,28 +59,14 @@ You can use the algorithm like in the example below. Check examples folders for
|
|
|
59
59
|
```python
|
|
60
60
|
from perpetual import PerpetualBooster
|
|
61
61
|
|
|
62
|
-
model = PerpetualBooster(objective="SquaredLoss")
|
|
63
|
-
model.fit(X, y
|
|
62
|
+
model = PerpetualBooster(objective="SquaredLoss", budget=0.5)
|
|
63
|
+
model.fit(X, y)
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
## Documentation
|
|
67
67
|
|
|
68
68
|
Documentation for the Python API can be found [here](https://perpetual-ml.github.io/perpetual) and for the Rust API [here](https://docs.rs/perpetual/latest/perpetual/).
|
|
69
69
|
|
|
70
|
-
## Usage
|
|
71
|
-
|
|
72
|
-
You can use the algorithm like in the example below. Check examples folders for both Rust and Python.
|
|
73
|
-
|
|
74
|
-
```python
|
|
75
|
-
from perpetual import PerpetualBooster
|
|
76
|
-
|
|
77
|
-
model = PerpetualBooster(objective="SquaredLoss")
|
|
78
|
-
model.fit(X, y, budget=1.0)
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
## Documentation
|
|
82
|
-
|
|
83
|
-
Documentation for the Python API can be found [here](https://perpetual-ml.github.io/perpetual) and for the Rust API [here](https://docs.rs/perpetual/latest/perpetual/).
|
|
84
70
|
|
|
85
71
|
## Benchmark
|
|
86
72
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
perpetual-0.8.1.dist-info/METADATA,sha256=UNcSudsW5App4W9EnFAgjxFrhbHwfbomtz7jwGIVi5s,10752
|
|
2
|
+
perpetual-0.8.1.dist-info/WHEEL,sha256=iNzfSeughQ6gviCftXhu6zZQCMTOJAdqefPsfmeKgU8,95
|
|
3
|
+
perpetual-0.8.1.dist-info/license_files/LICENSE,sha256=gcuuhKKc5-dwvyvHsXjlC9oM6N5gZ6umYbC8ewW1Yvg,35821
|
|
4
|
+
perpetual-0.8.1.dist-info/license_files/LICENSE,sha256=gcuuhKKc5-dwvyvHsXjlC9oM6N5gZ6umYbC8ewW1Yvg,35821
|
|
5
|
+
perpetual/booster.py,sha256=ne-RgsYIjzQAYiTtI1PJ_IpolnS-C89trIFCdoiZoH4,50118
|
|
6
|
+
perpetual/data.py,sha256=HiDsv2i1p9cLkXe8vnekxfpafyuxfWXwXrucdIir3xk,614
|
|
7
|
+
perpetual/serialize.py,sha256=FeW4JsUFVsrft9N7gz-ebn5mXvDv4LiJC2sgBEeGxYo,1957
|
|
8
|
+
perpetual/types.py,sha256=idZNsDErNTur_rJ_5Co8Pb6fik-AUn9lkrXmjbQJVX0,3381
|
|
9
|
+
perpetual/utils.py,sha256=nqwO6GFHi7I5iltuvgLT3NFaPm1h9cHlnomjFcdSfHY,7455
|
|
10
|
+
perpetual/__init__.py,sha256=V0RhghaG0CuKxKrzYUBYqrf7Drb-gjmznsbz9KT12lk,122
|
|
11
|
+
perpetual/perpetual.cp313-win_amd64.pyd,sha256=lrWyuEZiMH8l75Tprn383NMkPDGh7q18LRIlKYzzE14,1661952
|
|
12
|
+
perpetual-0.8.1.dist-info/RECORD,,
|
perpetual-0.8.0.dist-info/RECORD
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
perpetual-0.8.0.dist-info/METADATA,sha256=ltP-CG0Mf7qq2jMoDAS3hhZBSPFJdbDQ3MGlFuPwczc,11199
|
|
2
|
-
perpetual-0.8.0.dist-info/WHEEL,sha256=iNzfSeughQ6gviCftXhu6zZQCMTOJAdqefPsfmeKgU8,95
|
|
3
|
-
perpetual-0.8.0.dist-info/license_files/LICENSE,sha256=gcuuhKKc5-dwvyvHsXjlC9oM6N5gZ6umYbC8ewW1Yvg,35821
|
|
4
|
-
perpetual-0.8.0.dist-info/license_files/LICENSE,sha256=gcuuhKKc5-dwvyvHsXjlC9oM6N5gZ6umYbC8ewW1Yvg,35821
|
|
5
|
-
perpetual/booster.py,sha256=HB0y3UNFEc0mL9FdmitFdZbPwUxrCN2-fqnCrN4XNrU,49886
|
|
6
|
-
perpetual/data.py,sha256=HiDsv2i1p9cLkXe8vnekxfpafyuxfWXwXrucdIir3xk,614
|
|
7
|
-
perpetual/serialize.py,sha256=FeW4JsUFVsrft9N7gz-ebn5mXvDv4LiJC2sgBEeGxYo,1957
|
|
8
|
-
perpetual/types.py,sha256=idZNsDErNTur_rJ_5Co8Pb6fik-AUn9lkrXmjbQJVX0,3381
|
|
9
|
-
perpetual/utils.py,sha256=nqwO6GFHi7I5iltuvgLT3NFaPm1h9cHlnomjFcdSfHY,7455
|
|
10
|
-
perpetual/__init__.py,sha256=V0RhghaG0CuKxKrzYUBYqrf7Drb-gjmznsbz9KT12lk,122
|
|
11
|
-
perpetual/perpetual.cp313-win_amd64.pyd,sha256=xxO3kFunCPmB-hBUqKys39EwmqcsNF2JfYDXzlrfjQw,1666560
|
|
12
|
-
perpetual-0.8.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|