Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

MICO: Mutual Information and Conic Optimization for feature selection

MICO is a Python package that implements a conic optimization based feature selection method with mutual information (MI) measure. The idea behind the approach is to measure the features’relevance and redundancy using MI, and then formulate a feature selection problem as a pure-binary quadratic optimization problem, which can be heuristically solved by an efficient randomization algorithm via semidefinite programming. Optimization software Colin is used for solving the underlying conic optimization problems.

This package

  • implements three methods for feature selections:

    • MICO : Conic Optimization approach

    • MIFS : Forward Selection approach

    • MIBS : Backward Selection approach

  • supports three different MI measures:

    • JMI : Joint Mutual Information

    • JMIM : Joint Mutual Information Maximisation

    • MRMR : Max-Relevance Min-Redundancy

  • generates feature importance scores for all selected features.

  • provides scikit-learn compatible APIs.

Installation

  1. Download Colin distribution from http://www.colinopt.org/downloads.php and unpack it into a chosen directory (<CLNHOME>). Then install Colin package:

cd <CLNHOME>/python
pip install -r requirements.txt
python setup.py install
  1. Next, install MICO package dependencies:

pip install -r requirements.txt
  1. To install MICO package, use:

python setup.py install

or

pip install colin-mico

To install the development version, you may use:

pip install --upgrade git+https://github.com/jupiters1117/mico

Usage

This package provides scikit-learn compatible APIs:

  • fit(X, y)

  • transform(X)

  • fit_transform(X, y)

Examples

The following example illustrates the use of the package:

import pandas as pd
from sklearn.datasets import load_breast_cancer

# Prepare data.
data = load_breast_cancer()
y = data.target
X = pd.DataFrame(data.data, columns=data.feature_names)

# Perform feature selection.
mico = MutualInformationConicOptimization(verbose=1, categorical=True)
mico.fit(X, y)

# Populate selected features.
print("Selected features: {}".format(mico.get_support()))

# Populate feature importance scores.
print("Feature importance scores: {}".format(mico.feature_importances_))

# Call transform() on X.
X_transformed = mico.transform(X)

Documentation

User guide, examples, and API are available here.

Metadata

Release files for colin-mico 0.1.0a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for colin-mico 0.1.0a0
File Size Uploaded Provenance Actions
colin-mico-0.1.0a0.tar.gz 25.4 kB Without provenance Details for colin-mico-0.1.0a0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for colin-mico 0.1.0a0
File Interpreter ABI Platform Actions
colin_mico-0.1.0a0-py3-none-any.whl Python 3 none any Details for colin_mico-0.1.0a0-py3-none-any.whl

Total release size: 51.5 kB

Release files / colin-mico-0.1.0a0.tar.gz

Download URL colin-mico-0.1.0a0.tar.gz
Size 25.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d629e45eb46f941ef2704503dd9a5ae8352524dee2de88eb21b695ef53510fa8
BLAKE2b-256 checksum
How to use checksums
9af0f5bed19e25b488b7fb99c8ba0a8534ff4029b82d6d4e56315fc0f3e6246b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1.post20191125 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.9

Release files / colin_mico-0.1.0a0-py3-none-any.whl

Download URL colin_mico-0.1.0a0-py3-none-any.whl
Size 26.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29f16d6ba2e2d65305199a1b5115f1ccd20063da5ef27466a17da56e7fc58da6
BLAKE2b-256 checksum
How to use checksums
a07cead5cbdf08f2ae460971ffbcceb4abb74ef7353cd7e02f6c4b120cacd4d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1.post20191125 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.9

Security for colin-mico 0.1.0a0

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.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page