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, waitgetgetCollectibleNamesadd, getReceivableNamesendExecutepublic 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)
INodepublic DataPartition<double[]> get()
ICollectorget in interface Collectorget in interface ICollector<double[]>public void add(java.lang.String name,
DataObject<?> data)
IReceptorpublic boolean execute(IMessage<double[]> message)
IComputepublic void evaluateModel(double[] w,
int evalCount)