All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.expleague.ml.models.nn.Identity Maven / Gradle / Ivy

package com.expleague.ml.models.nn;

import com.expleague.commons.math.AnalyticFunc;

public class Identity extends AnalyticFunc.Stub {
  @Override
  public double value(double x) {
    return x;
  }

  @Override
  public double gradient(double x) {
    return 1.;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy