Class MultiFactorTracker

java.lang.Object
ai.djl.training.tracker.MultiFactorTracker
All Implemented Interfaces:
ParameterTracker, Tracker

public class MultiFactorTracker extends Object implements Tracker
MultiFactorTracker is an implementation of Tracker which returns piecewise constant values for fixed numbers of steps. multiplicative factor, at an uneven interval of steps, until it reaches a specified stop value.
See Also:
  • Constructor Details

    • MultiFactorTracker

      public MultiFactorTracker(MultiFactorTracker.Builder builder)
      Creates a new instance of MultiFactorTracker.
      Parameters:
      builder - the builder to create a new instance of MultiFactorTracker
  • Method Details

    • builder

      public static MultiFactorTracker.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
    • getNewValue

      public float getNewValue(int numUpdate)
      Fetches the value after the given number of steps/updates.
      Specified by:
      getNewValue in interface Tracker
      Parameters:
      numUpdate - the total number of steps/updates
      Returns:
      this Builder