Class WeightsUpdate
- java.lang.Object
-
- org.apache.wayang.ml4all.abstraction.api.LogicalOperator
-
- org.apache.wayang.ml4all.abstraction.api.UpdateLocal<double[],double[]>
-
- org.apache.wayang.ml4all.algorithms.sgd.WeightsUpdate
-
- All Implemented Interfaces:
java.io.Serializable
public class WeightsUpdate extends UpdateLocal<double[],double[]>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WeightsUpdate()WeightsUpdate(double stepSize, double regulizer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ML4allModelassign(double[] input, ML4allModel model)Assigns the new value of the global variable to theML4allModeldouble[]process(double[] input, ML4allModel model)Computes the new value of the global variable-
Methods inherited from class org.apache.wayang.ml4all.abstraction.api.LogicalOperator
finalise, initialise
-
-
-
-
Method Detail
-
process
public double[] process(double[] input, ML4allModel model)Description copied from class:UpdateLocalComputes the new value of the global variable- Specified by:
processin classUpdateLocal<double[],double[]>- Parameters:
input- the ouput of the aggregate of theCompute
-
assign
public ML4allModel assign(double[] input, ML4allModel model)
Description copied from class:UpdateLocalAssigns the new value of the global variable to theML4allModel- Specified by:
assignin classUpdateLocal<double[],double[]>- Parameters:
input- the output of the process method- Returns:
- the new
ML4allModel
-
-