pysad.core.BaseStreamer

class pysad.core.BaseStreamer(shuffle=False)[source]

Abstract base class to simulate the streaming data.

Parameters:

shuffle (bool) – Whether shuffle the data initially (Optional, default=False).

Methods

__init__([shuffle])

iter(X[, y])

Method that iterates array of data and (optionally) labels.

abstract iter(X, y=None)[source]

Method that iterates array of data and (optionally) labels.

Parameters:
  • X (np.array of shape (num_instances, num_features)) – The features of instances to iterate.

  • y – (Optional, default=None) If not None, iterates labels with the same order.