CGMissingData
CGMissingData is a simple missing-data benchmarking package that runs:
MICE imputation (IterativeImputer)
ARIMA
XGBoost
Your CSV must include at least these columns:
Glucose value (target) = glucose_col
TimeSeries = time series data
Timestamp data= timestamp_col
subject ID = subjectid
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 CGMmissingData 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 CGMissingData==0.1.2 (change the version number depending our new release. You can also try with !pip -q install CGMissingData)
-
from CGMissingData 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)
cgmmissing
CGM missing value imputation pipeline:
- Convert
timestampto a numeric equal-intervalTimeSeriesusingCGManalyzer::equalInterval.fnviarpy2 - 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
Install
pip install -e .
Metadata
Release files for CGMissingData 0.1.7
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 |
|---|---|---|---|---|
| cgmissingdata-0.1.7.tar.gz | 7.3 kB | Without provenance | Details for cgmissingdata-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cgmissingdata-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for cgmissingdata-0.1.7-py3-none-any.whl |
Total release size: 17.3 kB
Release files / cgmissingdata-0.1.7.tar.gz
| Download URL | cgmissingdata-0.1.7.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2edc91c4cf1d6db1220e0446f1997445ca02c16dd9678ccdf6d98c0d0f0bcedf
|
|
BLAKE2b-256 checksum How to use checksums |
80f4a30fd00b0252c80027f38dc12802f01e24e8bbddc2283c345d2be4d53641
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Release files / cgmissingdata-0.1.7-py3-none-any.whl
| Download URL | cgmissingdata-0.1.7-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f819ec3226841d2268ff02e3b53a253bca0edc4463d24c56af9a711b7803aa5
|
|
BLAKE2b-256 checksum How to use checksums |
caf8dcd5dfe7b6cd2f9cbcf37493bfcfe561fc2a89029934188459c06e8d41a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Security for CGMissingData 0.1.7
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.