public class IterativeDataStream extends BaseSource implements IReceptor<double[][]>
Constructor and Description |
---|
IterativeDataStream(int features,
OperationMode operationMode) |
IterativeDataStream(int features,
OperationMode operationMode,
boolean isDummy,
BinaryBatchModel binaryBatchModel) |
IterativeDataStream(OperationMode operationMode) |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String name,
DataObject<?> data)
This method is called when the data is available
|
void |
compute() |
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() |
void |
initializeBatchMode()
This method initializes the parameters needed to run the batch mode algorithm
This method is called per a received batch
|
void |
initializeBinaryModel(double[][] xy)
Binary Model is updated with received batch data
|
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 IterativeDataStream(OperationMode operationMode)
public IterativeDataStream(int features, OperationMode operationMode)
public IterativeDataStream(int features, OperationMode operationMode, boolean isDummy, BinaryBatchModel binaryBatchModel)
public void add(java.lang.String name, DataObject<?> data)
IReceptor
public void execute()
ISource
public void getData()
public void dummyDataStreamer() throws InputDataFormatException
InputDataFormatException
public void realDataStreamer()
public void compute()
public void initializeBatchMode()
public void initializeBinaryModel(double[][] xy)
xy
- data points included with label and features