@Deprecated public class DataStreamer extends BaseSource
Constructor and Description |
---|
DataStreamer(int features,
OperationMode operationMode)
Deprecated.
|
DataStreamer(OperationMode operationMode)
Deprecated.
|
DataStreamer(OperationMode operationMode,
boolean isDummy,
BinaryBatchModel binaryBatchModel)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
dummyDataStreamer()
Deprecated.
This method is used to deal with dummy data based data stream generation
Here data points are generated using a Gaussian Distribution and labels are assigned
+1 or -1 randomly for a given data point.
|
void |
execute()
Deprecated.
Execute without an incoming message
|
void |
prepare(Config cfg,
TaskContext ctx)
Deprecated.
Prepare the task to be executed
|
void |
realDataStreamer()
Deprecated.
This method must be implemented
TODO : Use Twister2 DataAPI to Handle real data streaming
|
public DataStreamer(OperationMode operationMode)
public DataStreamer(int features, OperationMode operationMode)
public DataStreamer(OperationMode operationMode, boolean isDummy, BinaryBatchModel binaryBatchModel)
public void execute()
ISource
public void prepare(Config cfg, TaskContext ctx)
INode
public void dummyDataStreamer() throws InputDataFormatException
InputDataFormatException
public void realDataStreamer()