Class WeightsUpdate

All Implemented Interfaces:
Serializable

public class WeightsUpdate extends UpdateLocal<double[],double[]>
See Also:
  • Constructor Details

    • WeightsUpdate

      public WeightsUpdate()
    • WeightsUpdate

      public WeightsUpdate(double stepSize, double regulizer)
  • Method Details

    • 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 class UpdateLocal<double[],double[]>
      Parameters:
      input - the ouput of the aggregate of the Compute
    • assign

      public ML4allModel assign(double[] input, ML4allModel model)
      Description copied from class: UpdateLocal
      Assigns the new value of the global variable to the ML4allModel
      Specified by:
      assign in class UpdateLocal<double[],double[]>
      Parameters:
      input - the output of the process method
      Returns:
      the new ML4allModel