aplr 10.8.0__cp38-cp38-macosx_11_0_x86_64.whl → 10.9.0__cp38-cp38-macosx_11_0_x86_64.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 +10 -2
- {aplr-10.8.0.dist-info → aplr-10.9.0.dist-info}/METADATA +1 -1
- aplr-10.9.0.dist-info/RECORD +8 -0
- {aplr-10.8.0.dist-info → aplr-10.9.0.dist-info}/WHEEL +1 -1
- aplr_cpp.cpython-38-darwin.so +0 -0
- aplr-10.8.0.dist-info/RECORD +0 -8
- {aplr-10.8.0.dist-info → aplr-10.9.0.dist-info}/LICENSE +0 -0
- {aplr-10.8.0.dist-info → aplr-10.9.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,
|
|
@@ -343,6 +346,7 @@ class APLRRegressor:
|
|
|
343
346
|
"penalty_for_non_linearity": self.penalty_for_non_linearity,
|
|
344
347
|
"penalty_for_interactions": self.penalty_for_interactions,
|
|
345
348
|
"max_terms": self.max_terms,
|
|
349
|
+
"ridge_penalty": self.ridge_penalty,
|
|
346
350
|
}
|
|
347
351
|
|
|
348
352
|
# For sklearn
|
|
@@ -370,11 +374,12 @@ class APLRClassifier:
|
|
|
370
374
|
max_eligible_terms: int = 7,
|
|
371
375
|
boosting_steps_before_interactions_are_allowed: int = 0,
|
|
372
376
|
monotonic_constraints_ignore_interactions: bool = False,
|
|
373
|
-
early_stopping_rounds: int =
|
|
377
|
+
early_stopping_rounds: int = 200,
|
|
374
378
|
num_first_steps_with_linear_effects_only: int = 0,
|
|
375
379
|
penalty_for_non_linearity: float = 0.0,
|
|
376
380
|
penalty_for_interactions: float = 0.0,
|
|
377
381
|
max_terms: int = 0,
|
|
382
|
+
ridge_penalty: float = 0.0001,
|
|
378
383
|
):
|
|
379
384
|
self.m = m
|
|
380
385
|
self.v = v
|
|
@@ -401,6 +406,7 @@ class APLRClassifier:
|
|
|
401
406
|
self.penalty_for_non_linearity = penalty_for_non_linearity
|
|
402
407
|
self.penalty_for_interactions = penalty_for_interactions
|
|
403
408
|
self.max_terms = max_terms
|
|
409
|
+
self.ridge_penalty = ridge_penalty
|
|
404
410
|
|
|
405
411
|
# Creating aplr_cpp and setting parameters
|
|
406
412
|
self.APLRClassifier = aplr_cpp.APLRClassifier()
|
|
@@ -435,6 +441,7 @@ class APLRClassifier:
|
|
|
435
441
|
self.APLRClassifier.penalty_for_non_linearity = self.penalty_for_non_linearity
|
|
436
442
|
self.APLRClassifier.penalty_for_interactions = self.penalty_for_interactions
|
|
437
443
|
self.APLRClassifier.max_terms = self.max_terms
|
|
444
|
+
self.APLRClassifier.ridge_penalty = self.ridge_penalty
|
|
438
445
|
|
|
439
446
|
def fit(
|
|
440
447
|
self,
|
|
@@ -527,6 +534,7 @@ class APLRClassifier:
|
|
|
527
534
|
"penalty_for_non_linearity": self.penalty_for_non_linearity,
|
|
528
535
|
"penalty_for_interactions": self.penalty_for_interactions,
|
|
529
536
|
"max_terms": self.max_terms,
|
|
537
|
+
"ridge_penalty": self.ridge_penalty,
|
|
530
538
|
}
|
|
531
539
|
|
|
532
540
|
# For sklearn
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
aplr_cpp.cpython-38-darwin.so,sha256=7auvdeG3cGmo87o5mLdParVXTEfY8DRfijBOmE3FrnA,1245520
|
|
2
|
+
aplr-10.9.0.dist-info/RECORD,,
|
|
3
|
+
aplr-10.9.0.dist-info/LICENSE,sha256=g4qcQtkSVPHtGRi3T93DoFCrssvW6ij_emU-2fj_xfY,1113
|
|
4
|
+
aplr-10.9.0.dist-info/WHEEL,sha256=cUircLPNEDPczZuQgNAChiVdH0bXKL7aZLyJklUgtV8,108
|
|
5
|
+
aplr-10.9.0.dist-info/top_level.txt,sha256=DXVC0RIFGpzVnPeKWAZTXQdJheOEZL51Wip6Fx7zbR4,14
|
|
6
|
+
aplr-10.9.0.dist-info/METADATA,sha256=6DU-ooaaHoz_Uf8B5HyRR1X-TjaNg9INHGs44rwHsPA,2107
|
|
7
|
+
aplr/__init__.py,sha256=rRfTgNWnYZlFatyA920lWqBcjwmQUI7FcvEPFUTJgzE,20
|
|
8
|
+
aplr/aplr.py,sha256=18XnQy37U3AApCWESlfKysuHPsl9_LiF2kyubroFr_Q,26718
|
aplr_cpp.cpython-38-darwin.so
CHANGED
|
Binary file
|
aplr-10.8.0.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
aplr_cpp.cpython-38-darwin.so,sha256=PaUtNOZFrOtDFUa_cNr3w2VGiGY2S_00SxmN_eN-mb4,1245728
|
|
2
|
-
aplr-10.8.0.dist-info/RECORD,,
|
|
3
|
-
aplr-10.8.0.dist-info/LICENSE,sha256=g4qcQtkSVPHtGRi3T93DoFCrssvW6ij_emU-2fj_xfY,1113
|
|
4
|
-
aplr-10.8.0.dist-info/WHEEL,sha256=BmLHWpvgEGxzQ0a-0fMfPaUmirqQ6nY7ysk8YssV2bA,108
|
|
5
|
-
aplr-10.8.0.dist-info/top_level.txt,sha256=DXVC0RIFGpzVnPeKWAZTXQdJheOEZL51Wip6Fx7zbR4,14
|
|
6
|
-
aplr-10.8.0.dist-info/METADATA,sha256=Yyv9wyoe4hFRpGsoMQGQsCROdf4-J_D7WEI4fdMG4D4,2107
|
|
7
|
-
aplr/__init__.py,sha256=rRfTgNWnYZlFatyA920lWqBcjwmQUI7FcvEPFUTJgzE,20
|
|
8
|
-
aplr/aplr.py,sha256=moW3FR738q7lCxl_xgzXwoPFMYp2x__aNPOfu5-AMV8,26323
|
|
File without changes
|
|
File without changes
|