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:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassign
(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 variableMethods inherited from class org.apache.wayang.ml4all.abstraction.api.LogicalOperator
finalise, initialise
-
Constructor Details
-
WeightsUpdate
public WeightsUpdate() -
WeightsUpdate
public WeightsUpdate(double stepSize, double regulizer)
-
-
Method Details
-
process
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
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
-