net.sf.myra.datamining.util
Class C45Disc

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

public class C45Disc
extends java.lang.Object

This class represents the C45Disc discretization procedure.

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

Nested Class Summary
static class C45Disc.Rule
          This class represents a discretization rule.
static class C45Disc.RuleParser
          Discretization rule parser.
 
Constructor Summary
C45Disc()
           
 
Method Summary
static Dataset discretize(Dataset dataset)
          Discretizes the specified dataset.
static Dataset[] discretize(Dataset trainingSet, Dataset testSet)
          Discretizes the specified training and test datasets.
static void main(java.lang.String[] args)
          C4.5Disc entry point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

C45Disc

public C45Disc()
Method Detail

discretize

public static Dataset discretize(Dataset dataset)
                          throws java.lang.Exception
Discretizes the specified dataset.

Parameters:
dataset - the dataset to be discretized.
Returns:
the discretized dataset instance.
Throws:
java.lang.Exception - if any problem is encountered.

discretize

public static Dataset[] discretize(Dataset trainingSet,
                                   Dataset testSet)
                            throws java.lang.Exception
Discretizes the specified training and test datasets. Note that the discretization rules are determined using only the training dataset.

Parameters:
trainingSet - the training dataset to be discretized.
testSet - the test dataset to be discretized.
Returns:
a 2-dimensional array, where the first index represents the training dataset and the second index represents the test dataset.
Throws:
java.lang.Exception - if any problem is encountered.

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
C4.5Disc entry point.

Parameters:
args - command line arguments.
Throws:
java.lang.Exception - if any problem is encountered.


Copyright © 2013. All Rights Reserved.