Implementation of event-based models for degenerative diseases.
Project description
EBM
This is the python package for implementing Event Based Models for Disease Progression.
Installation
pip install alabEBM
Generate Random Data
from alabEBM import generate, get_params_path
import os
# Get path to default parameters
params_file = get_params_path()
# Generate data using default parameters
S_ordering = [
'HIP-FCI', 'PCC-FCI', 'AB', 'P-Tau', 'MMSE', 'ADAS',
'HIP-GMI', 'AVLT-Sum', 'FUS-GMI', 'FUS-FCI'
]
generate(
S_ordering=S_ordering,
real_theta_phi_file=params_file, # Use default parameters
js = [50, 100], # Number of participants
rs = [0.1, 0.5], # Percentage of non-diseased participants
num_of_datasets_per_combination=2,
output_dir='my_data'
)
Run MCMC Algorithms
from alabEBM import run_ebm
from alabEBM.data import get_sample_data_path
import os
print("Current Working Directory:", os.getcwd())
for algorithm in ['soft_kmeans', 'conjugate_priors', 'hard_kmeans']:
results = run_ebm(
data_file=get_sample_data_path('25|50_10.csv'), # Use the path helper
algorithm=algorithm,
n_iter=2000,
n_shuffle=2,
burn_in=1000,
thinning=20,
)
Features
-
Multiple MCMC algorithms:
- Conjugate Priors
- Hard K-means
- Soft K-means
-
Data generation utilities
-
Extensive logging
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
alabebm-0.1.7.tar.gz
(31.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
alabEBM-0.1.7-py3-none-any.whl
(35.8 kB
view details)
File details
Details for the file alabebm-0.1.7.tar.gz.
File metadata
- Download URL: alabebm-0.1.7.tar.gz
- Upload date:
- Size: 31.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3b81b1b5792064e02386855edfcb561c85ff608d784b7595ffcd4c98377366d
|
|
| MD5 |
c99fa8b39ce21d212d6065887f2d5d88
|
|
| BLAKE2b-256 |
dfb3b079d89db77fd766ca10c37ab6cf74df406eb244a0844a4d54fa71495cc9
|
File details
Details for the file alabEBM-0.1.7-py3-none-any.whl.
File metadata
- Download URL: alabEBM-0.1.7-py3-none-any.whl
- Upload date:
- Size: 35.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f175ea0b5014a56cf4a30405261cb02cf6c6344d55ccb282d3fde1cea34c938
|
|
| MD5 |
a28415ad8400f91d69d8451a9a4b33f0
|
|
| BLAKE2b-256 |
324da80f3a1363846a4389f808a26eab508ca686083f9c5ef3094ef4737590a1
|