|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.datamining.io.Helper
net.sf.myra.datamining.io.C45Helper
public final class C45Helper
Helper class to manipulate files in C4.5 format.
Constructor Summary | |
---|---|
C45Helper()
No instances allowed (private constructor). |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
|
Dataset |
read(java.io.File file)
Returns a Dataset instance that represents the data of
the specified file. |
Dataset |
read(java.io.File directory,
java.lang.String filestem)
|
Dataset |
read(java.io.Reader names,
java.io.Reader data)
Returns a Dataset instance that represents the data of
the specified files. |
void |
write(java.io.File directory,
Dataset dataset)
Writes the specified dataset in the C4.5 input file format (names/data). |
void |
write(java.io.Writer writer,
Dataset dataset)
Unsupported operation. |
Methods inherited from class net.sf.myra.datamining.io.Helper |
---|
getHelper, getHelper, isCompressed, open, open, read, setCompressed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public C45Helper()
Method Detail |
---|
public Dataset read(java.io.File directory, java.lang.String filestem) throws java.io.IOException
java.io.IOException
public Dataset read(java.io.File file) throws java.io.IOException
Helper
Dataset
instance that represents the data of
the specified file.
read
in class Helper
file
- the file to read the data from.
Dataset
instance.
java.io.IOException
- if any file operation fails.public Dataset read(java.io.Reader names, java.io.Reader data) throws java.io.IOException
Dataset
instance that represents the data of
the specified files.
names
- the input reader for the .names file.data
- the input reader for the .data file.
Dataset
instance.
java.io.IOException
- if any file operation fails.public void write(java.io.File directory, Dataset dataset) throws java.io.IOException
write
in class Helper
directory
- the output directory.dataset
- the dataset to be written.
java.io.IOException
public void write(java.io.Writer writer, Dataset dataset) throws java.io.IOException
write
in class Helper
writer
- the output writer.dataset
- the dataset to be written.
java.io.IOException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |