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

com.expleague.ml.optimization.UniformReguralizer Maven / Gradle / Ivy

There is a newer version: 1.4.9
Show newest version
package com.expleague.ml.optimization;

import com.expleague.commons.math.vectors.Vec;
import com.expleague.ml.func.RegularizerFunc;

public class UniformReguralizer extends RegularizerFunc.Stub {
  private final int dim;

  public UniformReguralizer(int dim) {
    this.dim = dim;
  }

  @Override
  public Vec project(Vec x) {
    return x;
  }

  @Override
  public double value(Vec x) {
    return 0;
  }

  @Override
  public int dim() {
    return dim;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy