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

com.expleague.ml.methods.greedyRegion.BinaryRegion Maven / Gradle / Ivy

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

import com.expleague.ml.data.set.VecDataSet;
import com.expleague.ml.loss.StatBasedLoss;
import com.expleague.ml.models.Region;

/**
 * Created by noxoomo on 09/02/15.
 */
public class BinaryRegion extends RegionBasedOptimization {
  RegionBasedOptimization inner;
  public BinaryRegion(RegionBasedOptimization inner) {
    this.inner = inner;
  }

  @Override
  public Region fit(VecDataSet learn, Loss loss) {
    return new Region(inner.fit(learn,loss),1.0,0);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy