pyaging 0.6.0__tar.gz → 0.6.2__tar.gz

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.
Files changed (37) hide show
  1. {pyaging-0.6.0 → pyaging-0.6.2}/PKG-INFO +1 -1
  2. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/__init__.py +1 -1
  3. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/models/_models.py +5 -8
  4. {pyaging-0.6.0 → pyaging-0.6.2}/.gitignore +0 -0
  5. {pyaging-0.6.0 → pyaging-0.6.2}/LICENSE +0 -0
  6. {pyaging-0.6.0 → pyaging-0.6.2}/README.md +0 -0
  7. {pyaging-0.6.0 → pyaging-0.6.2}/pyproject.toml +0 -0
  8. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/data/__init__.py +0 -0
  9. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/data/_data.py +0 -0
  10. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/data/dnam_feature_medians.json.gz +0 -0
  11. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/data/feature_ranges.json +0 -0
  12. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/logger/__init__.py +0 -0
  13. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/logger/_live.py +0 -0
  14. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/logger/_logger.py +0 -0
  15. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/models/__init__.py +0 -0
  16. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/models/_author_extensions.py +0 -0
  17. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/models/_base_models.py +0 -0
  18. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/models/_organage.py +0 -0
  19. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/models/_paopac.py +0 -0
  20. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/models/_pc_extensions.py +0 -0
  21. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/models/_proteoclock.py +0 -0
  22. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/models/_replication.py +0 -0
  23. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/predict/__init__.py +0 -0
  24. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/predict/_cache.py +0 -0
  25. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/predict/_pred.py +0 -0
  26. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/predict/_pred_utils.py +0 -0
  27. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/predict/_transforms.py +0 -0
  28. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/preprocess/__init__.py +0 -0
  29. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/preprocess/_preprocess.py +0 -0
  30. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/preprocess/_preprocess_utils.py +0 -0
  31. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/preprocess/_tage.py +0 -0
  32. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/py.typed +0 -0
  33. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/utils/__init__.py +0 -0
  34. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/utils/_feature_ranges.py +0 -0
  35. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/utils/_files.py +0 -0
  36. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/utils/_hf.py +0 -0
  37. {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/utils/_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: pyaging
3
- Version: 0.6.0
3
+ Version: 0.6.2
4
4
  Summary: A Python-based compendium of GPU-optimized aging clocks.
5
5
  Project-URL: homepage, https://github.com/lucascamillomd/pyaging
6
6
  Project-URL: repository, https://github.com/lucascamillomd/pyaging
@@ -4,4 +4,4 @@ from . import data, logger, models, utils
4
4
  from . import predict as pred
5
5
  from . import preprocess as pp
6
6
 
7
- __version__ = "0.6.0"
7
+ __version__ = "0.6.2"
@@ -1725,14 +1725,11 @@ class PhenoAge(pyagingModel):
1725
1725
 
1726
1726
  def postprocess(self, x):
1727
1727
  """Convert the fitted log hazard to clinical Phenotypic Age in years."""
1728
- # log(1 - mortality) equals the negative Gompertz hazard exactly.
1729
- # Cancel the nested exp/log terms before finite precision rounds the
1730
- # mortality to zero or one, preserving the published constants.
1731
- # Levine 2018 supplementary methods, p. 2: gamma = 0.0076927.
1732
- # The 0.0192 on p. 1 is the Cox variable-selection penalty, not gamma.
1733
- gamma = 0.0076927
1734
- log_scale = math.log(0.00553 * math.expm1(120 * gamma) / gamma)
1735
- return 141.50225 + (x + log_scale) / 0.090165
1728
+ # Kuo et al. (2021), section 4.3, doi:10.1111/acel.13376.
1729
+ # Substitute the negative Gompertz hazard for log(1 - mortality).
1730
+ # Cancel log(exp(xb)) before mortality can round to zero or one.
1731
+ log_scaled_hazard = x + math.log(0.00553 * 1.51714 / 0.0076927)
1732
+ return 141.50 + log_scaled_hazard / 0.09165
1736
1733
 
1737
1734
 
1738
1735
  class PhenoAgeSaoPaulo(pyagingModel):
File without changes
File without changes
File without changes
File without changes
File without changes