Skip to main content

Benchmarking imputation methods for microdata

Project description

Microimpute

Microimpute enables variable imputation through a variety of statistical methods. By providing a consistent interface across different imputation techniques, it allows researchers and data scientists to easily compare and benchmark different approaches using quantile loss and log loss calculations to determine the method providing most accurate results.

Features

Multiple imputation methods

  • Statistical Matching: Distance-based matching for finding similar observations
  • Ordinary Least Squares (OLS): Linear regression-based imputation
  • Quantile Regression: Distribution-aware regression imputation
  • Quantile Random Forests (QRF): Non-parametric forest-based approach
  • Mixture Density Networks (MDN): Neural network with Gaussian mixture approximation head

Automated method selection

  • AutoImpute: Automatically compares and selects the best imputation method for your data
  • Cross-validation: Built-in evaluation using quantile loss (numerical) and log loss (categorical)
  • Variable type support: Handles numerical, categorical, and boolean variables

Developer-friendly design

  • Consistent API: Standardized fit() and predict() interface across all models
  • Extensible architecture: Easy to implement custom imputation methods
  • Weighted data handling: Preserve data distributions with sample weights
  • Input validation: Automatic parameter and data validation

Interactive dashboard

  • Visual exploration: Analyze imputation results through interactive charts at https://microimpute-dashboard.vercel.app/
  • GitHub integration: Load artifacts directly from CI/CD workflows
  • Multiple data sources: File upload, URL loading and sample data

Installation

pip install microimpute

For image export functionality (PNG/JPG), install with:

pip install microimpute[images]

Examples and documentation

For detailed examples and interactive notebooks, see the documentation.

Contributing

Contributions are welcome to the project. Please feel free to submit a Pull Request with your improvements.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

microimpute-1.14.2.tar.gz (128.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

microimpute-1.14.2-py3-none-any.whl (110.5 kB view details)

Uploaded Python 3

File details

Details for the file microimpute-1.14.2.tar.gz.

File metadata

  • Download URL: microimpute-1.14.2.tar.gz
  • Upload date:
  • Size: 128.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for microimpute-1.14.2.tar.gz
Algorithm Hash digest
SHA256 b046b54a6cd554163e858226b077d606d61e7dbee44d1d8dd2a03647e501a760
MD5 27326344a866075f8aca0605b9f6188c
BLAKE2b-256 c24f6bad4586d2e6c59769dbca53e8f1da15ac7724a1652c52c90d05c8ade6ad

See more details on using hashes here.

File details

Details for the file microimpute-1.14.2-py3-none-any.whl.

File metadata

  • Download URL: microimpute-1.14.2-py3-none-any.whl
  • Upload date:
  • Size: 110.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for microimpute-1.14.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8352b3d2a705e82698f7fa43a20c3c4706265babf07a4d04fbe2933e7ecd8acd
MD5 0e12aa85658f8666e6e64957f9a8cc78
BLAKE2b-256 3e559393012e2f775fbf54944920f80f38ffe2f3ac742b6368efb2c7c360f80c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page