public class PredictionSourceTask extends BaseSource implements Receptor
Constructor and Description |
---|
PredictionSourceTask(boolean isDummy,
BinaryBatchModel binaryBatchModel,
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 |
doPrediction() |
void |
dummyTest() |
void |
execute()
Execute without an incoming message
|
void |
getData()
This method must be broken down to smaller parts
|
java.lang.Object |
getDataPointsByDataObject(int taskIndex,
DataObject<?> datapointsDataObject) |
java.lang.Object |
getDataPointsByTaskIndex(int taskIndex) |
java.lang.Object |
getWeightVectorByTaskIndex(int taskIndex) |
java.lang.Object |
getWeightVectorByWeightVectorObject(int taskIndex,
DataObject<?> datapointsDataObject) |
void |
realTest() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, getReceivableNames
public PredictionSourceTask(boolean isDummy, BinaryBatchModel binaryBatchModel, OperationMode operationMode)
public void add(java.lang.String name, DataObject<?> data)
Receptor
public void execute()
ISource
public void dummyTest()
public void realTest() throws MatrixMultiplicationException
MatrixMultiplicationException
public java.lang.Object getDataPointsByTaskIndex(int taskIndex)
public java.lang.Object getDataPointsByDataObject(int taskIndex, DataObject<?> datapointsDataObject)
public java.lang.Object getWeightVectorByTaskIndex(int taskIndex)
public java.lang.Object getWeightVectorByWeightVectorObject(int taskIndex, DataObject<?> datapointsDataObject)
public void getData() throws MatrixMultiplicationException
MatrixMultiplicationException
public void doPrediction() throws MatrixMultiplicationException
MatrixMultiplicationException