imputeCGM imputeCGM is a simple missing-data benchmarking package that runs: MICE imputation (IterativeImputer) combined with ARIMA and XGBoost
Your CSV must include at least these columns:
glucose_col = Glucose value (target)
TimeSeries = time series data
Timestamp_col = Timestamp data
subject ID
How to Run?
Envirionment Setup- cd "C:\Path\To\Your\Project" Create a virtual environment python -m venv .venv
Activate the environment- ..venv\Scripts\activate
Install python python -m pip install --upgrade pip pip install -e .
..venv\Scripts\python.exe -c "from imputeCGM import run_missingness_benchmark; r=run_missingness_benchmark('MyData.csv', mask_rates=[0.05, 0.10, 0.20, 0.30, 0.40]); print(r); r.to_csv('results.csv', index=False)" #Ensure your dataset (e.g., MyData.csv) is located in the project file. Execute the benchmark directly from the CLI to generate a results.csv file:
Using Google Colab?
!pip -q install imputeCGM==0.1.2 (change the version number depending our new release. You can also try with !pip -q install imputeCGM)
from imputeCGM import run_missingness_benchmark
df = "/content/drive/MyDrive/CGMExampleData.csv" # your dataset path
results = run_missingness_benchmark( "CGMExampleData.csv", # or df mask_rates=[0.05, 0.10, 0.20, 0.30, 0.40] )
print(results)
results.to_csv("results.csv", index=False)
imputeCGM CGM missing value imputation pipeline:
Convert timestamp to a numeric equal-interval TimeSeries using CGManalyzer::equalInterval.fn via rpy2 Add lag features per subjectid: lag1, lag2, lag3, rollmean Compute missing rate on glucose_value If missing rate <= 5%: MICE + ARIMA (segmentwise over missing blocks) Else: MICE + XGBoost Output original dataset plus imputed_glucose_value
Metadata
Release files for imputeCGM 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| imputecgm-0.1.2.tar.gz | 10.4 kB | Without provenance | Details for imputecgm-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| imputecgm-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for imputecgm-0.1.2-py3-none-any.whl |
Total release size: 23.2 kB
Release files / imputecgm-0.1.2.tar.gz
| Download URL | imputecgm-0.1.2.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c8d8b4c8e817b56cff86890808f41a62ba09224bce2279602d58a6fb98afdd0
|
|
BLAKE2b-256 checksum How to use checksums |
e9cdce34224b082dc208fc6ca417dcedb67ba336ebcf75be80050eb440b44bae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Release files / imputecgm-0.1.2-py3-none-any.whl
| Download URL | imputecgm-0.1.2-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81304475bf92f6b56a447f0f6a2f7a02c4cfc2699125610b4a2a330033f93dd0
|
|
BLAKE2b-256 checksum How to use checksums |
b1e787dfbf10a0f99c521c31f77359c6e3d3be389341028ec52005ba6e21222c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Security for imputeCGM 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.