Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 697 Bytes

readme.md

File metadata and controls

26 lines (21 loc) · 697 Bytes

Hoeffding Option Tree

Python implementation of Hoeffding Option Tree for Online Learning.

  • River integration.

Requirements Installation

git clone https://github.com/francescogrillea/HoeffdingOptionTree.git
cd HoeffdingOptionTree

pip install -r requirements.txt

Usage in Python

from hoeffding_option_tree import HoeffdingOptionTreeClassifier
from river.evaluate import progressive_val_score
from river.metrics import Accuracy

dataset = ...  # add dataset
metric = ... # specify metric
model = HoeffdingOptionTreeClassifier(tau=1.5, grace_period=3)

progressive_val_score(dataset=dataset,
                      model=model,
                      metric=metric)