Skip to main content

DEEP ENSEMBLE

Description

In the context of deep learning, This library is a wrapper, It allows one to perform ensembling techniques such as Stacked Ensembling, Weighted Ensembling, Ensembling based on Votes. This library get in an array of predictions made by different models on which the user wants to perform ensembling and it performs either of the three ensembling technique based on user choice.

  • What this does?

    • Gets array of predictions(probabilities)
    • Performs ensembling
    • Returns Score of the metrics(user prefers)
    • Returns Y_predicted resulting due to ensembling
  • Ensembling Techniques included

    • Weighted Ensembling
    • Ensembling by Voting
    • Stacked Ensembling

Deep Ensemble

Deep Ensemble is a python package for ensembling the prediciton results.

How to use:

Step 1: Install the libaray

pip install DeepEnsemble

Step 2:

Import the library, and specify the path of the csv file.

from DeepEnsemble.DeepEnsemble import DeepEnsembler

Ensembler = DeepEnsembler(Y_pred, Y_actual, type=None, predThreshold=0.5, metrics="accuracy_score")
score,Y_pred_ensembled = Ensembler.WeightedEnsembling()

Note:

  • Y_pred - Array of predictions made by models
  • Y_actual - Array of actual Class

There are some optional parameters that you can specify as listed below,

Usage:

from DeepEnsemble.DeepEnsemble import DeepEnsembler
Y_Pred = np.array([results of model1],
                  [results of model2],
                  [results of model3],
                   ....)
Y_actual = np.array([actual class])

---Example1:
Ensembler = DeepEnsembler(Y_Pred, Y_actual, type="Weighted", predThreshold=0.6, metrics="cohen_kappa_score")
score,Y_pred_ensembled = Ensembler.WeightedClassifier()

---Example2:
Ensembler = DeepEnsembler(Y_Pred, Y_actual, type="Voting", predThreshold=0.6, metrics="cohen_kappa_score")
score,Y_pred_ensembled = Ensembler.VotingClassifier()

---Example3:
Ensembler = DeepEnsembler(Y_Pred, Y_actual, type="Stacking", predThreshold=0.6, metrics="cohen_kappa_score")
score,Y_pred_ensembled = Ensembler.StackingClassifier()

Parameters


Parameter Default Value Limit Example
Y_pred none Provide a array with results of different models. np.array([results of model1],[results of model2],[results of model3],....)
Y_actual , Provide a array with actual class np.array([actual class])
type Weighted Weighted, Voted, Stacked
predThreshold 0.5 0 to 1 0.5
metrics Sklearn Classification metrics specify any valid classificaiton metrics from sklearn "accuracy_score"

--- THANK YOU, CHEERS ---

Metadata

Release files for DeepEnsemble 0.0.3

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

Source distribution (sdist)

Source distribution for DeepEnsemble 0.0.3
File Size Uploaded Provenance Actions
DeepEnsemble-0.0.3.tar.gz 5.4 kB Without provenance Details for DeepEnsemble-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for DeepEnsemble 0.0.3
File Interpreter ABI Platform Actions
DeepEnsemble-0.0.3-py3-none-any.whl Python 3 none any Details for DeepEnsemble-0.0.3-py3-none-any.whl

Total release size: 11.3 kB

Release files / DeepEnsemble-0.0.3.tar.gz

Download URL DeepEnsemble-0.0.3.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c00eb769a7b84ab6702a0dbaaa6e53e4ffb7ac604e47d3755146cfede4db35a9
BLAKE2b-256 checksum
How to use checksums
71f0d052ac0d5b9030af85ac528ac05cecd6763542f1c105b87b370a6da47fd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.0

Release files / DeepEnsemble-0.0.3-py3-none-any.whl

Download URL DeepEnsemble-0.0.3-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b9b8ea2b5bf2d12addc0035a6306c1da12b26920a924f0adcf86053f16510f54
BLAKE2b-256 checksum
How to use checksums
28f175725a2309ac6f630db0a712e2de8a5ab5643f887c065a3be2e1323382b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.0

Security for DeepEnsemble 0.0.3

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

0.0.3 This release

2 release files No provenance

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