public class IterativeSVMCompute extends BaseCompute
Constructor and Description |
---|
IterativeSVMCompute(BinaryBatchModel binaryBatchModel,
OperationMode operationMode) |
IterativeSVMCompute(OperationMode operationMode) |
Modifier and Type | Method and Description |
---|---|
void |
batchTraining()
This method is used to do batch mode training *
|
boolean |
execute(IMessage content)
Execute with an incoming message
|
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 |
iterativeBatchTraining()
This method is used to do batch mode training *
|
void |
onlineTraining(double[] x1,
double y1)
This method can be used to do the online training
Upon the receiving IMessage with a double [] = {y_i, x_i1, ...x_id}
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
endExecute
public IterativeSVMCompute(OperationMode operationMode)
public IterativeSVMCompute(BinaryBatchModel binaryBatchModel, OperationMode operationMode)
public boolean execute(IMessage content)
ICompute
public void onlineTraining(double[] x1, double y1)
x1
- data point with d elementsy1
- label an integer [-1, +1] for binary classificationpublic void batchTraining()
public void iterativeBatchTraining()
public void initializeBatchMode()
public void initializeBinaryModel(double[][] xy)
xy
- data points included with label and features