CSVStream#
- class capymoa.stream.CSVStream[source]#
Bases:
Stream
[_AnyInstance
]- __init__(
- csv_file_path,
- dtypes: list = None,
- values_for_nominal_features={},
- class_index: int = -1,
- values_for_class_label: list = None,
- target_attribute_name=None,
- target_type: str = None,
- skip_header: bool = False,
- delimiter=',',
- dataset_name: str | None = None,
- next_instance() _AnyInstance [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.