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,
- __iter__() Iterator[_AnyInstance] [source]#
Get an iterator over the stream.
This will NOT restart the stream if it has already been iterated over. Please use the
restart()
method to restart the stream.- Yield:
An iterator over the stream.
- __next__() _AnyInstance [source]#
Get the next instance in the stream.
- Returns:
The next instance in the stream.