pyaging 0.6.1__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.1 → pyaging-0.6.2}/PKG-INFO +1 -1
  2. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/__init__.py +1 -1
  3. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/models/_models.py +3 -3
  4. {pyaging-0.6.1 → pyaging-0.6.2}/.gitignore +0 -0
  5. {pyaging-0.6.1 → pyaging-0.6.2}/LICENSE +0 -0
  6. {pyaging-0.6.1 → pyaging-0.6.2}/README.md +0 -0
  7. {pyaging-0.6.1 → pyaging-0.6.2}/pyproject.toml +0 -0
  8. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/data/__init__.py +0 -0
  9. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/data/_data.py +0 -0
  10. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/data/dnam_feature_medians.json.gz +0 -0
  11. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/data/feature_ranges.json +0 -0
  12. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/logger/__init__.py +0 -0
  13. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/logger/_live.py +0 -0
  14. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/logger/_logger.py +0 -0
  15. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/models/__init__.py +0 -0
  16. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/models/_author_extensions.py +0 -0
  17. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/models/_base_models.py +0 -0
  18. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/models/_organage.py +0 -0
  19. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/models/_paopac.py +0 -0
  20. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/models/_pc_extensions.py +0 -0
  21. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/models/_proteoclock.py +0 -0
  22. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/models/_replication.py +0 -0
  23. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/predict/__init__.py +0 -0
  24. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/predict/_cache.py +0 -0
  25. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/predict/_pred.py +0 -0
  26. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/predict/_pred_utils.py +0 -0
  27. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/predict/_transforms.py +0 -0
  28. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/preprocess/__init__.py +0 -0
  29. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/preprocess/_preprocess.py +0 -0
  30. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/preprocess/_preprocess_utils.py +0 -0
  31. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/preprocess/_tage.py +0 -0
  32. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/py.typed +0 -0
  33. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/utils/__init__.py +0 -0
  34. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/utils/_feature_ranges.py +0 -0
  35. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/utils/_files.py +0 -0
  36. {pyaging-0.6.1 → pyaging-0.6.2}/src/pyaging/utils/_hf.py +0 -0
  37. {pyaging-0.6.1 → 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.1
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.1"
7
+ __version__ = "0.6.2"
@@ -1725,11 +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
- # Liu et al. (2019), doi:10.1371/journal.pmed.1002760.
1728
+ # Kuo et al. (2021), section 4.3, doi:10.1111/acel.13376.
1729
1729
  # Substitute the negative Gompertz hazard for log(1 - mortality).
1730
- # Evaluate log(1 + exp(log_scaled_hazard)) without overflow.
1730
+ # Cancel log(exp(xb)) before mortality can round to zero or one.
1731
1731
  log_scaled_hazard = x + math.log(0.00553 * 1.51714 / 0.0076927)
1732
- return 141.50 + torch.logaddexp(torch.zeros_like(x), log_scaled_hazard) / 0.09165
1732
+ return 141.50 + log_scaled_hazard / 0.09165
1733
1733
 
1734
1734
 
1735
1735
  class PhenoAgeSaoPaulo(pyagingModel):
File without changes
File without changes
File without changes
File without changes
File without changes