https://github.com/chris-santiago/wetsuit
A Scikit-learn style wrapper for H2O estimators.
Science Score: 36.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 2 committers (50.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.0%) to scientific vocabulary
Keywords from Contributors
Repository
A Scikit-learn style wrapper for H2O estimators.
Basic Info
- Host: GitHub
- Owner: chris-santiago
- License: mit
- Language: Python
- Default Branch: master
- Size: 2.89 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
- Releases: 1
Metadata Files
README.md
Wetsuit
A Scikit-Learn wrapper for H2O Estimators.
Why Wetsuit
While H2O Estimators have the .fit() and .predict() methods of the Scikit-Learn API, they don't always
function as expected, especially with Pipeline objects. This package contains two estimators to remedy.
For example. the H2OEstimator.fit() method expects two H2OFrame objects, vice pandas DataFrame or
numpy NDArray objects. Wetsuit provides two classes classes that wrap H2OEstimator objects and
handle type conversion automatically, within the .fit() and .predict() methods:
WetsuitRegressorWetsuitClassifier
Install
Create a virtual environment with Python >= 3.7 and install from PyPI:
bash
pip install wetsuit
Use
Basic Pipeline
Here's an example that shows Scikit-Learn Pipeline compatibility. To align with the H2O API,
we must instantiate the WetsuitClassifier with a list of feature names and the name of the
response variable (these can also be indices). From there, you can plug in to a basic Pipeline
object.
```python import h2o from h2o.estimators import H2OXGBoostEstimator from sklearn.datasets import load_iris from sklearn.preprocessing import StandardScaler from sklearn.pipeline import Pipeline
import wetsuit
h2o.init()
data = load_iris()
cls = wetsuit.WetsuitClassifier(H2OXGBoostEstimator(), data['feature_names'], 'target') pl = Pipeline([ ('scaler', StandardScaler()), ('cls', cls) ]) pl.fit(data['data'], data['target']) fitted = pl.predict(data['data'])
h2o.cluster().shutdown() ```
Note: If you're doing feature selection within the pipeline, it's best instantiate the WetsuitClassifier
from within the pipeline, so that you can dynamically pass a list of selected features using a
selector's .get_feature_names_out() method.
Documentation
Documentation hosted on Github Pages: https://chris-santiago.github.io/wetsuit/
Owner
- Name: Chris Santiago
- Login: chris-santiago
- Kind: user
- Repositories: 64
- Profile: https://github.com/chris-santiago
GitHub Events
Total
Last Year
Committers
Last synced: over 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| chris-santiago | c****o@g****u | 13 |
| Chris Santiago | 4****o | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 1
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 1
- Total pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- chris-santiago (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 11 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 1
- Total maintainers: 1
pypi.org: wetsuit
A Scikit-learn style wrapper for H2O estimators.
- Documentation: https://chris-santiago.github.io/wetsuit/
- License: MIT License
-
Latest release: 0.1.0
published over 3 years ago