aplr 10.8.0__cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl → 10.10.0__cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.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 aplr might be problematic. Click here for more details.
- aplr/aplr.py +16 -2
- {aplr-10.8.0.dist-info → aplr-10.10.0.dist-info}/METADATA +14 -2
- aplr-10.10.0.dist-info/RECORD +8 -0
- {aplr-10.8.0.dist-info → aplr-10.10.0.dist-info}/WHEEL +1 -1
- aplr_cpp.cpython-313-i386-linux-gnu.so +0 -0
- aplr-10.8.0.dist-info/RECORD +0 -8
- {aplr-10.8.0.dist-info → aplr-10.10.0.dist-info/licenses}/LICENSE +0 -0
- {aplr-10.8.0.dist-info → aplr-10.10.0.dist-info}/top_level.txt +0 -0
aplr/aplr.py
CHANGED
|
@@ -69,11 +69,12 @@ class APLRRegressor:
|
|
|
69
69
|
monotonic_constraints_ignore_interactions: bool = False,
|
|
70
70
|
group_mse_by_prediction_bins: int = 10,
|
|
71
71
|
group_mse_cycle_min_obs_in_bin: int = 30,
|
|
72
|
-
early_stopping_rounds: int =
|
|
72
|
+
early_stopping_rounds: int = 200,
|
|
73
73
|
num_first_steps_with_linear_effects_only: int = 0,
|
|
74
74
|
penalty_for_non_linearity: float = 0.0,
|
|
75
75
|
penalty_for_interactions: float = 0.0,
|
|
76
76
|
max_terms: int = 0,
|
|
77
|
+
ridge_penalty: float = 0.0001,
|
|
77
78
|
):
|
|
78
79
|
self.m = m
|
|
79
80
|
self.v = v
|
|
@@ -120,6 +121,7 @@ class APLRRegressor:
|
|
|
120
121
|
self.penalty_for_non_linearity = penalty_for_non_linearity
|
|
121
122
|
self.penalty_for_interactions = penalty_for_interactions
|
|
122
123
|
self.max_terms = max_terms
|
|
124
|
+
self.ridge_penalty = ridge_penalty
|
|
123
125
|
|
|
124
126
|
# Creating aplr_cpp and setting parameters
|
|
125
127
|
self.APLRRegressor = aplr_cpp.APLRRegressor()
|
|
@@ -180,6 +182,7 @@ class APLRRegressor:
|
|
|
180
182
|
self.APLRRegressor.penalty_for_non_linearity = self.penalty_for_non_linearity
|
|
181
183
|
self.APLRRegressor.penalty_for_interactions = self.penalty_for_interactions
|
|
182
184
|
self.APLRRegressor.max_terms = self.max_terms
|
|
185
|
+
self.APLRRegressor.ridge_penalty = self.ridge_penalty
|
|
183
186
|
|
|
184
187
|
def fit(
|
|
185
188
|
self,
|
|
@@ -309,6 +312,12 @@ class APLRRegressor:
|
|
|
309
312
|
def set_intercept(self, value: float):
|
|
310
313
|
self.APLRRegressor.set_intercept(value)
|
|
311
314
|
|
|
315
|
+
def remove_provided_custom_functions(self):
|
|
316
|
+
self.APLRRegressor.remove_provided_custom_functions()
|
|
317
|
+
self.calculate_custom_validation_error_function = None
|
|
318
|
+
self.calculate_custom_loss_function = None
|
|
319
|
+
self.calculate_custom_negative_gradient_function = None
|
|
320
|
+
|
|
312
321
|
# For sklearn
|
|
313
322
|
def get_params(self, deep=True):
|
|
314
323
|
return {
|
|
@@ -343,6 +352,7 @@ class APLRRegressor:
|
|
|
343
352
|
"penalty_for_non_linearity": self.penalty_for_non_linearity,
|
|
344
353
|
"penalty_for_interactions": self.penalty_for_interactions,
|
|
345
354
|
"max_terms": self.max_terms,
|
|
355
|
+
"ridge_penalty": self.ridge_penalty,
|
|
346
356
|
}
|
|
347
357
|
|
|
348
358
|
# For sklearn
|
|
@@ -370,11 +380,12 @@ class APLRClassifier:
|
|
|
370
380
|
max_eligible_terms: int = 7,
|
|
371
381
|
boosting_steps_before_interactions_are_allowed: int = 0,
|
|
372
382
|
monotonic_constraints_ignore_interactions: bool = False,
|
|
373
|
-
early_stopping_rounds: int =
|
|
383
|
+
early_stopping_rounds: int = 200,
|
|
374
384
|
num_first_steps_with_linear_effects_only: int = 0,
|
|
375
385
|
penalty_for_non_linearity: float = 0.0,
|
|
376
386
|
penalty_for_interactions: float = 0.0,
|
|
377
387
|
max_terms: int = 0,
|
|
388
|
+
ridge_penalty: float = 0.0001,
|
|
378
389
|
):
|
|
379
390
|
self.m = m
|
|
380
391
|
self.v = v
|
|
@@ -401,6 +412,7 @@ class APLRClassifier:
|
|
|
401
412
|
self.penalty_for_non_linearity = penalty_for_non_linearity
|
|
402
413
|
self.penalty_for_interactions = penalty_for_interactions
|
|
403
414
|
self.max_terms = max_terms
|
|
415
|
+
self.ridge_penalty = ridge_penalty
|
|
404
416
|
|
|
405
417
|
# Creating aplr_cpp and setting parameters
|
|
406
418
|
self.APLRClassifier = aplr_cpp.APLRClassifier()
|
|
@@ -435,6 +447,7 @@ class APLRClassifier:
|
|
|
435
447
|
self.APLRClassifier.penalty_for_non_linearity = self.penalty_for_non_linearity
|
|
436
448
|
self.APLRClassifier.penalty_for_interactions = self.penalty_for_interactions
|
|
437
449
|
self.APLRClassifier.max_terms = self.max_terms
|
|
450
|
+
self.APLRClassifier.ridge_penalty = self.ridge_penalty
|
|
438
451
|
|
|
439
452
|
def fit(
|
|
440
453
|
self,
|
|
@@ -527,6 +540,7 @@ class APLRClassifier:
|
|
|
527
540
|
"penalty_for_non_linearity": self.penalty_for_non_linearity,
|
|
528
541
|
"penalty_for_interactions": self.penalty_for_interactions,
|
|
529
542
|
"max_terms": self.max_terms,
|
|
543
|
+
"ridge_penalty": self.ridge_penalty,
|
|
530
544
|
}
|
|
531
545
|
|
|
532
546
|
# For sklearn
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: aplr
|
|
3
|
-
Version: 10.
|
|
3
|
+
Version: 10.10.0
|
|
4
4
|
Summary: Automatic Piecewise Linear Regression
|
|
5
5
|
Home-page: https://github.com/ottenbreit-data-science/aplr
|
|
6
6
|
Author: Mathias von Ottenbreit
|
|
@@ -14,6 +14,18 @@ Requires-Python: >=3.8
|
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
15
|
License-File: LICENSE
|
|
16
16
|
Requires-Dist: numpy>=1.11
|
|
17
|
+
Dynamic: author
|
|
18
|
+
Dynamic: author-email
|
|
19
|
+
Dynamic: classifier
|
|
20
|
+
Dynamic: description
|
|
21
|
+
Dynamic: description-content-type
|
|
22
|
+
Dynamic: home-page
|
|
23
|
+
Dynamic: license
|
|
24
|
+
Dynamic: license-file
|
|
25
|
+
Dynamic: platform
|
|
26
|
+
Dynamic: requires-dist
|
|
27
|
+
Dynamic: requires-python
|
|
28
|
+
Dynamic: summary
|
|
17
29
|
|
|
18
30
|
# APLR
|
|
19
31
|
**Automatic Piecewise Linear Regression**
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
aplr_cpp.cpython-313-i386-linux-gnu.so,sha256=9E0KyjF8I9ptkovjEbLWZy--6P5Ga-aIbweeQv9B3AU,31603924
|
|
2
|
+
aplr-10.10.0.dist-info/METADATA,sha256=qE6GTyvu_G2qVnelamjeukYjUaOQWPR_wlNx7CbthHQ,2362
|
|
3
|
+
aplr-10.10.0.dist-info/top_level.txt,sha256=DXVC0RIFGpzVnPeKWAZTXQdJheOEZL51Wip6Fx7zbR4,14
|
|
4
|
+
aplr-10.10.0.dist-info/WHEEL,sha256=ShVzVQkPfax84O2bLLrGj6PpG0rmzqLK0yFHdA32nOU,147
|
|
5
|
+
aplr-10.10.0.dist-info/RECORD,,
|
|
6
|
+
aplr-10.10.0.dist-info/licenses/LICENSE,sha256=g4qcQtkSVPHtGRi3T93DoFCrssvW6ij_emU-2fj_xfY,1113
|
|
7
|
+
aplr/__init__.py,sha256=rRfTgNWnYZlFatyA920lWqBcjwmQUI7FcvEPFUTJgzE,20
|
|
8
|
+
aplr/aplr.py,sha256=Sw_AbqJTrMH2gvYM2eqbZ_PaDVzaOLq_sJrwoaFqK3s,27013
|
|
Binary file
|
aplr-10.8.0.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
aplr_cpp.cpython-313-i386-linux-gnu.so,sha256=zv8NCHrgF4tU5d8JK9EO01bhA8hbItX5zNv8FBqexRY,30462748
|
|
2
|
-
aplr/aplr.py,sha256=moW3FR738q7lCxl_xgzXwoPFMYp2x__aNPOfu5-AMV8,26323
|
|
3
|
-
aplr/__init__.py,sha256=rRfTgNWnYZlFatyA920lWqBcjwmQUI7FcvEPFUTJgzE,20
|
|
4
|
-
aplr-10.8.0.dist-info/top_level.txt,sha256=DXVC0RIFGpzVnPeKWAZTXQdJheOEZL51Wip6Fx7zbR4,14
|
|
5
|
-
aplr-10.8.0.dist-info/RECORD,,
|
|
6
|
-
aplr-10.8.0.dist-info/LICENSE,sha256=g4qcQtkSVPHtGRi3T93DoFCrssvW6ij_emU-2fj_xfY,1113
|
|
7
|
-
aplr-10.8.0.dist-info/METADATA,sha256=Yyv9wyoe4hFRpGsoMQGQsCROdf4-J_D7WEI4fdMG4D4,2107
|
|
8
|
-
aplr-10.8.0.dist-info/WHEEL,sha256=ewPyGPedJpfkSFU0uuYI35Jeu4FveCM3hOtta8ze1oM,147
|
|
File without changes
|
|
File without changes
|