Quick Start
Get up and running in minutes with this simple example.
from openmoa.streams import SEAGenerator
from openmoa.classifiers import HoeffdingTree
from openmoa.evaluation import prequential_evaluation
# Create a data stream
stream = SEAGenerator(noise_percentage=0.1)
# Initialize the classifier
classifier = HoeffdingTree()
# Run prequential evaluation
results = prequential_evaluation(
stream=stream,
learner=classifier,
max_instances=10000,
sample_frequency=1000
)
print(f"Accuracy: {results.accuracy()}")