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 ML4allModel
assign(double[] input, ML4allModel model)
Assigns the new value of the global variable to theML4allModel
double[]
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:UpdateLocal
Computes the new value of the global variable- Specified by:
process
in classUpdateLocal<double[],double[]>
- Parameters:
input
- the ouput of the aggregate of theCompute
-
assign
public ML4allModel assign(double[] input, ML4allModel model)
Description copied from class:UpdateLocal
Assigns the new value of the global variable to theML4allModel
- Specified by:
assign
in classUpdateLocal<double[],double[]>
- Parameters:
input
- the output of the process method- Returns:
- the new
ML4allModel
-
-