Class LinearTracker

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

public class LinearTracker extends Object implements Tracker
FactorTracker is an implementation of Tracker which is updated by a constant factor.
See Also:
  • Constructor Details

    • LinearTracker

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

    • builder

      public static LinearTracker.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