org.apache.mahout.ga.watchmaker.cd.hadoop
Class DatasetSplit
java.lang.Object
org.apache.mahout.ga.watchmaker.cd.hadoop.DatasetSplit
public class DatasetSplit
- extends java.lang.Object
Separate the input data into a training and testing set.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatasetSplit
public DatasetSplit(long seed,
double threshold)
- Parameters:
seed
- threshold
- fraction of the total dataset that will be used for training
DatasetSplit
public DatasetSplit(double threshold)
DatasetSplit
public DatasetSplit(org.apache.hadoop.mapred.JobConf conf)
getSeed
public long getSeed()
getThreshold
public double getThreshold()
isTraining
public boolean isTraining()
setTraining
public void setTraining(boolean training)
storeJobParameters
public void storeJobParameters(org.apache.hadoop.mapred.JobConf conf)
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.