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 cluster_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.0.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.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: clustered_imputation-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 5809ff386b82ce60be5e71a32cf2440cc7377432e464dce887f8dacb551c24af
MD5 431acffda4f92c1ca5688cecd8eb1847
BLAKE2b-256 08a42d12272abe95d64d44db4a0ad7c1938d8af19c55854ab95ea0c7acad36c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for clustered_imputation-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c2eccadf63d4455656fddb5751b1957290eb2888a441ac441a9c93d4cf51822f
MD5 b9cca20de89a0ebc65c35ffbce5c9d73
BLAKE2b-256 2a600954fd49292e47ccff5bbd76b39ef832dd09a53acf2f797860ae08be5cff

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