meds-algorithm-curiosity 0.1.1__tar.gz → 0.1.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 (31) hide show
  1. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/CHANGELOG.md +5 -1
  2. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/PKG-INFO +1 -1
  3. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/pyproject.toml +1 -1
  4. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/src/curiosity_meds/config.py +3 -2
  5. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/tests/conftest.py +1 -1
  6. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/tests/e2e.py +1 -1
  7. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/uv.lock +1 -1
  8. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/.gitignore +0 -0
  9. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/LICENSE +0 -0
  10. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/README.md +0 -0
  11. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/RELEASING.md +0 -0
  12. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/algorithms/zero_shot_materialized/model.yaml +0 -0
  13. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/configs/runs/run.yaml +0 -0
  14. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/docs/IMPLEMENTATION_GUIDE.md +0 -0
  15. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/docs/TESTING.md +0 -0
  16. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/scripts/check_distribution.sh +0 -0
  17. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/scripts/check_release.py +0 -0
  18. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/scripts/github-sync.sh +0 -0
  19. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/src/curiosity_meds/__init__.py +0 -0
  20. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/src/curiosity_meds/__main__.py +0 -0
  21. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/src/curiosity_meds/_model.py +0 -0
  22. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/src/curiosity_meds/_tokenizer.py +0 -0
  23. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/src/curiosity_meds/curiosity_meds.py +0 -0
  24. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/src/curiosity_meds/hierarchies/MIMIC-IV.yaml +0 -0
  25. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/tests/__init__.py +0 -0
  26. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/tests/fixtures/in_icu_mortality.yaml +0 -0
  27. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/tests/fixtures/predicates.yaml +0 -0
  28. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/tests/test_conformance.py +0 -0
  29. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/tests/test_curiosity.py +0 -0
  30. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/tests/test_primary_behavior.py +0 -0
  31. {meds_algorithm_curiosity-0.1.1 → meds_algorithm_curiosity-0.1.2}/tests/wheel_smoke.py +0 -0
@@ -1,6 +1,10 @@
1
1
  # Changes
2
2
 
3
- ## 0.1.1 (unreleased)
3
+ ## 0.1.2 (2026-11-24)
4
+
5
+ - 100 sampled futures per prediction time by default (`n_samples`; was 60, the paper's 365-day mortality setting).
6
+
7
+ ## 0.1.1 (2026-11-24)
4
8
 
5
9
  - Dataset-agnostic tokenization (a documented adaptation of the papers): every MEDS code is one whole-code token, with
6
10
  no event categories, category files or ICD/ATC hierarchy split. A code with at least `min_bucket_observations`
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: meds-algorithm-curiosity
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Curiosity-0826 generative medical event model: Qwen2 decoder pretrained on tokenized MEDS timelines, zero-shot task prediction by Monte Carlo generation of future timelines.
5
5
  Project-URL: Repository, https://github.com/florian6973/meds-algo-curiosity
6
6
  Author-email: Florent Pollet <flo1.raymond@gmail.com>
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "meds-algorithm-curiosity"
7
- version = "0.1.1"
7
+ version = "0.1.2"
8
8
  description = "Curiosity-0826 generative medical event model: Qwen2 decoder pretrained on tokenized MEDS timelines, zero-shot task prediction by Monte Carlo generation of future timelines."
9
9
  readme = "README.md"
10
10
  authors = [{name = "Florent Pollet", email = "flo1.raymond@gmail.com"}]
@@ -72,8 +72,9 @@ class CuriosityConfig(NNConfig):
72
72
  gradient_clip: float = 1.0
73
73
  device: str = "auto"
74
74
 
75
- # Generation (paper Sec. 4.1: 60 simulations, up to 4,000 tokens, four retries for 365-day mortality).
76
- n_samples: int = 60
75
+ # Generation: 100 futures (chosen by Florent; the paper uses 20-80 per task, 60 for 365-day mortality, Sec. 4.1),
76
+ # up to 4,000 tokens and four retries (the paper's 365-day mortality setting).
77
+ n_samples: int = 100
77
78
  temperature: float = 1.0
78
79
  max_new_tokens: int = 4000
79
80
  max_attempts: int = 5
@@ -20,7 +20,7 @@ def algorithm_case():
20
20
  name="curiosity_meds",
21
21
  create_repository=create_repository,
22
22
  configurations=(
23
- CuriosityConfig(), # defaults: Curiosity-S size, two-stage context, n=60
23
+ CuriosityConfig(), # defaults: Curiosity-S size, two-stage context, n=100
24
24
  TEST_CONFIG,
25
25
  CuriosityConfig(capacity=2.0, race_column=None, horizon_days=730.0, n_samples=64, follow_up_days=0.0,
26
26
  extension_steps=0, extension_epochs=0.0, min_code_count=1, downsample_hours=None),
@@ -32,7 +32,7 @@ TEST_CONFIG = CuriosityConfig(
32
32
  n_samples=8, max_new_tokens=48, max_attempts=3, horizon_days=60.0,
33
33
  min_bucket_observations=20,
34
34
  )
35
- # Real data (MIMIC-IV demo): the defaults (Curiosity-S size, two-stage context, n=60, 5 x 4,000 tokens, 365 d) on the
35
+ # Real data (MIMIC-IV demo): the defaults (Curiosity-S size, two-stage context, n=100, 5 x 4,000 tokens, 365 d) on the
36
36
  # GPU when available; 8-sequence optimizer steps because the demo's ~100 subjects fill only a few 8,192-token windows.
37
37
  DEMO_CONFIG = CuriosityConfig(sequences_per_step=8)
38
38
 
@@ -593,7 +593,7 @@ orchestration = [
593
593
 
594
594
  [[package]]
595
595
  name = "meds-algorithm-curiosity"
596
- version = "0.1.1"
596
+ version = "0.1.2"
597
597
  source = { editable = "." }
598
598
  dependencies = [
599
599
  { name = "aces-relaxations" },