net.sf.myra.datamining.util
Class ValidationHelper

java.lang.Object
  extended by net.sf.myra.datamining.util.ValidationHelper

public class ValidationHelper
extends java.lang.Object

Version:
$Revision$ $Date:: #$
Author:
Fernando Esteban Barril Otero

Field Summary
static int FRACTION
          The default size of the validation set (1/10 of the dataset).
 
Constructor Summary
ValidationHelper(Dataset dataset)
          Creates a new ValidationHelper.
ValidationHelper(Dataset dataset, int fraction)
          Creates a new ValidationHelper.
 
Method Summary
 Dataset getTraining()
           
 Dataset getValidation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FRACTION

public static final int FRACTION
The default size of the validation set (1/10 of the dataset).

See Also:
Constant Field Values
Constructor Detail

ValidationHelper

public ValidationHelper(Dataset dataset)
Creates a new ValidationHelper.

Parameters:
dataset - the dataset to be divided.

ValidationHelper

public ValidationHelper(Dataset dataset,
                        int fraction)
Creates a new ValidationHelper.

Parameters:
dataset - the dataset to be divided.
fraction - the fraction to be used as validation (the size of the validation will be dataset.getSize() / fraction).
Method Detail

getTraining

public Dataset getTraining()
Returns:
the training

getValidation

public Dataset getValidation()
Returns:
the validation


Copyright © 2013. All Rights Reserved.