public class InputDataStreamer extends BaseSource implements Receptor
Constructor and Description |
---|
InputDataStreamer(int features,
OperationMode operationMode) |
InputDataStreamer(OperationMode operationMode) |
InputDataStreamer(OperationMode operationMode,
boolean isDummy,
BinaryBatchModel binaryBatchModel) |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String name,
DataObject<?> data)
This method is called when the data is available
|
void |
dummyDataStreamer()
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()
Execute without an incoming message
|
void |
getData() |
java.lang.Object |
getDataPointsByDataObject(int taskIndex,
DataObject<?> datapointsDataObject) |
java.lang.Object |
getDataPointsByTaskIndex(int taskIndex) |
java.lang.Object |
getWeightVectorByTaskIndex(int taskIndex) |
void |
prepare(Config cfg,
TaskContext ctx)
Prepare the task to be executed
|
void |
realDataStreamer()
This method is used to retrieve real data from
Data Source Task
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, getReceivableNames
public InputDataStreamer(OperationMode operationMode)
public InputDataStreamer(int features, OperationMode operationMode)
public InputDataStreamer(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()
public void add(java.lang.String name, DataObject<?> data)
Receptor
public java.lang.Object getDataPointsByTaskIndex(int taskIndex)
public java.lang.Object getWeightVectorByTaskIndex(int taskIndex)
public java.lang.Object getDataPointsByDataObject(int taskIndex, DataObject<?> datapointsDataObject)
public void getData()