public class CN2
extends java.lang.Object
Title: Main class of the algorithm
Description: It contains the esential methods for the CN2 algorithm
Created: November 26th 2004
Copyright: Copyright (c) 2004
Company: KEEL
Constructor and Description |
---|
CN2()
Default builder
|
CN2(java.lang.String ftrain,
java.lang.String feval,
java.lang.String ftest,
java.lang.String foutputTr,
java.lang.String foutputTst,
java.lang.String fsal,
int starSize,
double _covered,
int _accuracy)
CN2 class builder
It does a local copy of the filenames for their posterior use.
|
Modifier and Type | Method and Description |
---|---|
boolean |
everythingOK()
It checks if some of the preconditions are not satisfied: There are any continuous value or
there was a problem while reading the data files
|
void |
execute()
We execute here the CN2 algorithm and we create the necessary output data
|
public CN2()
public CN2(java.lang.String ftrain, java.lang.String feval, java.lang.String ftest, java.lang.String foutputTr, java.lang.String foutputTst, java.lang.String fsal, int starSize, double _covered, int _accuracy)
ftrain
- Name of the input training filefeval
- Name of the input validation fileftest
- Name of the input test filefoutputTr
- Name of the output training filefoutputTst
- Name of the output test filefsal
- Name of the output information filestarSize
- It is the maximum size for the star in the search process (beam search)_covered
- The percentage of maximum examples to cover_accuracy
- It refers wether the complete selectors will be employed (disjunctions).public boolean everythingOK()
public void execute()