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

com.expleague.ml.RankIt Maven / Gradle / Ivy

package com.expleague.ml;

import com.expleague.ml.data.set.VecDataSet;
import com.expleague.ml.data.impl.RankedDataSet;

import java.util.function.Function;

/**
 * User: solar
 * Date: 12.11.13
 * Time: 18:43
 */
public class RankIt implements Function {
  VecDataSet set;
  RankedDataSet result = null;

  public synchronized RankedDataSet value() {
    if (result == null)
      result = new RankedDataSet(set);
    return result;
  }

  @Override
  public RankIt apply(final VecDataSet argument) {
    set = argument;
    return this;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy