Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sklearn interface #91

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Sklearn interface #91

wants to merge 4 commits into from

Conversation

ppdebreuck
Copy link
Owner

@ppdebreuck ppdebreuck commented May 19, 2022

The sklearn API implementation of MODNet can be found under modnet.sklearn. It enables integration with scikit-learn methods such as pipelines, model selection functions (e.g. gridsearch), and integration with other sklearn models.

The main classes are:

  • MODNetFeaturizer: A transformer that converts a list of compositions or structures to a dataframe of shape (n_samples, n_features)

  • RR: A transformer based on Relevance-Redundancy (RR) feature selection. Given an input array or dataframe it will keep n_feat features with the highest RR-score.

  • MODNetRegressor: A regressor based on the MODNetModel for fitting, allowing multiple properties.

  • MODNetClassifier: A classifier based on the MODNetModel.

Tests: modnet/tests/test_sklearn.py

Example notebook: here

@davidwaroquiers
Copy link
Collaborator

This sounds really nice, thanks a lot! I can review this PR as I initially proposed the feature (without doing the hard work of implementing it ;-) Most likely end of this month.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants