ARFFStream#
- class capymoa.stream.ARFFStream[source]#
Bases:
Stream
A datastream originating from an ARFF file.
- __init__(path: str, CLI: str | None = None, class_index: int = -1)[source]#
Construct an ARFFStream object from a file path.
- Parameters:
path – A filepath
CLI – Additional command line arguments to pass to the MOA stream.
- next_instance() LabeledInstance | RegressionInstance [source]#
Return the next instance in the stream.
- Raises:
ValueError – If the machine learning task is neither a regression nor a classification task.
- Returns:
A labeled instances or a regression depending on the schema.