Skip to main content

Adding correlation to handle MNAR

Project description

Clustering Imputation

Installation

To install the package, run:

pip install clustering-imputation==1.0.0

Usage

from clustered_imputation import clusterImputer

df = ...  # Load your dataset

x = clusterImputer(data , basic_imputation , num_imputation , corr_threshold , max_iter)

x.impute()

About the Package

Features to be passed to the class clusterImputer

  • data --> Pass your dataframe

  • basic_imputation : Literal["mice" , "sice" , "em"] --> What imputation you want to perform on your clusters

  • num_imputation : Literal["mean" , "median"] --> How do you want to handle your initial numeric column imputation for creating correlation matrix

  • corr_threshold : 0.6 -->Threshold value to be used with respect to correlation matrix to create clusters

  • max_iter : 10 -->Maximum iteration for MICE and SICE

Problem Statement

  • Traditional imputation techniques face several challenges:

  • High-Dimensional and Sparse Data: Existing methods struggle with large, sparse datasets; efficient techniques for such cases are needed.

  • Temporal Dependencies: Current methods often overlook temporal correlations in data.

Need to develop a new algo

  • Non-Random Missingness: Few methods address non-random missing patterns; improvements here could boost real-world application accuracy. We aim to develop an imputation method that considers "Missing Not at Random" (MNAR).

  • Computational Complexity: MICE and EM methods are computationally expensive for high-dimensional data. Our approach aims to reduce time complexity.

Philosophy of Our Solution: Clustered MICE/EM

We propose a clustering-based approach:

  • Identify correlations between features.

  • Apply MICE/EM within clusters rather than on the entire dataset.

  • Combine results to reconstruct the dataset.

  • This method effectively handles MNAR data by leveraging feature correlations.

For further details refer this ppt

Contributing

Pull requests are welcome. For major changes, please open an issue first

to discuss what you would like to change.

Please make sure to update tests as appropriate.

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

clustered_imputation-1.0.1.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

clustered_imputation-1.0.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file clustered_imputation-1.0.1.tar.gz.

File metadata

  • Download URL: clustered_imputation-1.0.1.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.5

File hashes

Hashes for clustered_imputation-1.0.1.tar.gz
Algorithm Hash digest
SHA256 00cb76e22c49271bbfabf355bcd3268acc2c3b4afa761564e787d3e32663c2bd
MD5 f53da3c1fcac98f89e69ea5388f3ed64
BLAKE2b-256 a33a2a5deb5f5590292efaae0c488dc1f0fab528c02d990007485d713ad3ffbf

See more details on using hashes here.

File details

Details for the file clustered_imputation-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for clustered_imputation-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3c388db85439d88b79da7bc084155e5462745f5e3700834e084098450f298870
MD5 72b7bef636060a32572047b62bd75264
BLAKE2b-256 c421122510aeb17924f8e3c5bc06b646d2e7eb8340964fb783c489899cc54f70

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