public class IterativeStreamingCompute extends BaseCompute<double[]> implements ICollector<double[]>, IReceptor<double[][]>
Constructor and Description |
---|
IterativeStreamingCompute(OperationMode operationMode) |
IterativeStreamingCompute(OperationMode operationMode,
IFunction<double[]> reduceFn) |
IterativeStreamingCompute(OperationMode operationMode,
IFunction<double[]> reduceFn,
SVMJobParameters svmJobParameters) |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String name,
DataObject<?> data)
This method is called when the data is available
|
void |
evaluateModel(double[] w,
int evalCount) |
boolean |
execute(IMessage<double[]> message)
Execute with an incoming message
|
DataPartition<double[]> |
get()
get the collected valued
|
void |
prepare(Config cfg,
TaskContext ctx)
Prepare the task to be executed
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get
getCollectibleNames
add, getReceivableNames
endExecute
public IterativeStreamingCompute(OperationMode operationMode)
public IterativeStreamingCompute(OperationMode operationMode, IFunction<double[]> reduceFn)
public IterativeStreamingCompute(OperationMode operationMode, IFunction<double[]> reduceFn, SVMJobParameters svmJobParameters)
public void prepare(Config cfg, TaskContext ctx)
INode
public DataPartition<double[]> get()
ICollector
get
in interface Collector
get
in interface ICollector<double[]>
public void add(java.lang.String name, DataObject<?> data)
IReceptor
public boolean execute(IMessage<double[]> message)
ICompute
public void evaluateModel(double[] w, int evalCount)