aplr 10.8.0__cp39-cp39-win_amd64.whl → 10.10.0__cp39-cp39-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 aplr might be problematic. Click here for more details.

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 = 500,
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 = 500,
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
1
+ Metadata-Version: 2.4
2
2
  Name: aplr
3
- Version: 10.8.0
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.cp39-win_amd64.pyd,sha256=L-nNTLQWyKU6QNa5JTXlDCgioCKPEgAhYHVmRCkD6js,626176
2
+ aplr/__init__.py,sha256=oDFSgVytP_qQ8ilun6oHxKr-DYEeqjEQp5FciX45lls,21
3
+ aplr/aplr.py,sha256=Sw_AbqJTrMH2gvYM2eqbZ_PaDVzaOLq_sJrwoaFqK3s,27013
4
+ aplr-10.10.0.dist-info/licenses/LICENSE,sha256=YOMo-RaL4P7edMZGD96-NskKpxyMZdP3-WiiMMmihNk,1134
5
+ aplr-10.10.0.dist-info/METADATA,sha256=cStaV34xb8skZfyt0pK_I4HqCmF9YoTUl19zSwqGzZE,2421
6
+ aplr-10.10.0.dist-info/WHEEL,sha256=XkFE14KmFh7mutkkb-qn_ueuH2lwfT8rLdfc5xpQ7wE,99
7
+ aplr-10.10.0.dist-info/top_level.txt,sha256=DXVC0RIFGpzVnPeKWAZTXQdJheOEZL51Wip6Fx7zbR4,14
8
+ aplr-10.10.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.6.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp39-cp39-win_amd64
5
5
 
Binary file
@@ -1,8 +0,0 @@
1
- aplr_cpp.cp39-win_amd64.pyd,sha256=unHSY8zqU_UMnCqLzOBOUeRD_hpxRUJbQd0tVNga5CQ,580608
2
- aplr/__init__.py,sha256=oDFSgVytP_qQ8ilun6oHxKr-DYEeqjEQp5FciX45lls,21
3
- aplr/aplr.py,sha256=moW3FR738q7lCxl_xgzXwoPFMYp2x__aNPOfu5-AMV8,26323
4
- aplr-10.8.0.dist-info/LICENSE,sha256=YOMo-RaL4P7edMZGD96-NskKpxyMZdP3-WiiMMmihNk,1134
5
- aplr-10.8.0.dist-info/METADATA,sha256=Yx0_Tm9uUTByeWqrcr2ZVS_Fulta5YOv1ng-qFaKabM,2154
6
- aplr-10.8.0.dist-info/WHEEL,sha256=EfPXSsrLwp9clrn29v9vbmPfEm-IfFzseSJd0ZtI9XA,99
7
- aplr-10.8.0.dist-info/top_level.txt,sha256=DXVC0RIFGpzVnPeKWAZTXQdJheOEZL51Wip6Fx7zbR4,14
8
- aplr-10.8.0.dist-info/RECORD,,