Skip to content
/ dagging Public

A Python package that implements the Dagging ensemble method for classification and regression

License

Notifications You must be signed in to change notification settings

chkoar/dagging

Repository files navigation

Dagging

Documentation Status

Python package implementing the dagging method

  • Free software: 3-clause BSD license

Example

from dagging import DaggingClassifier
from sklearn.datasets import load_iris

# Load Iris from from scikit-learn.
X, y = load_iris(True)

model = DaggingClassifier(n_estimators=10, random_state=0)

# Train the model.
model.fit(X,y)

# Accuracy
print(model.score(X, y))

Dependencies

The dependency requirements are based on the last scikit-learn release:

  • scipy
  • numpy
  • scikit-learn

Installation

dagging is currently available on the PyPi's repository and you can install it via pip:

pip install -U dagging

If you prefer, you can clone it and run the setup.py file. Use the following commands to get a copy from GitHub and install all dependencies:

git clone https://github.com/chkoar/dagging.git
cd dagging
pip install .

Or install using pip and GitHub:

pip install -U git+https://github.com/chkoar/dagging.git