|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.datamining.statistics.Parser
public class Parser
Generates PR curves from a predictions file.
Field Summary | |
---|---|
static java.lang.String |
CLASS_LABEL
Property name for the event of loading a class label. |
static java.lang.String |
ENABLED
Flag to indicate that the attribute is enabled. |
static java.lang.String |
MAPPING_SIZE
Property name for the mapping size event. |
static java.lang.String |
ORIGINAL_PREFIX
Prefix for 'original' (true) class attribute flags. |
static java.lang.String |
PREDICTED_PREFIX
Prefix for predicted class attribute flags. |
Constructor Summary | |
---|---|
Parser()
|
Method Summary | |
---|---|
void |
addListener(java.beans.PropertyChangeListener listener)
Adds a listener to this parser. |
static void |
main(java.lang.String[] args)
|
void |
propertyChange(java.beans.PropertyChangeEvent e)
|
Information |
read(Dataset dataset,
CurveFactory factory,
java.util.Set<java.lang.String> filter)
Parses the specified prediction file. |
Information |
read(java.io.File file,
CurveFactory factory)
Parses the specified prediction file. |
Information |
read(java.io.File file,
CurveFactory factory,
java.util.Set<java.lang.String> filter)
Parses the specified prediction file. |
Information |
read(java.lang.String file,
CurveFactory factory)
Parses the specified prediction file. |
Information |
read(java.lang.String file,
CurveFactory factory,
java.util.Set<java.lang.String> filter)
Parses the specified prediction file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MAPPING_SIZE
public static final java.lang.String CLASS_LABEL
public static final java.lang.String ORIGINAL_PREFIX
public static final java.lang.String PREDICTED_PREFIX
public static final java.lang.String ENABLED
Constructor Detail |
---|
public Parser()
Method Detail |
---|
public Information read(java.lang.String file, CurveFactory factory) throws java.io.IOException
file
- the name of the file.
java.io.IOException
public Information read(java.lang.String file, CurveFactory factory, java.util.Set<java.lang.String> filter) throws java.io.IOException
file
- the name of the file.
java.io.IOException
public Information read(java.io.File file, CurveFactory factory) throws java.io.IOException
file
- the file to parse.
java.io.IOException
public Information read(java.io.File file, CurveFactory factory, java.util.Set<java.lang.String> filter) throws java.io.IOException
file
- the dataset file name.factory
- the curve factory instance.filter
- the set of attributes to ignore.
java.io.IOException
public Information read(Dataset dataset, CurveFactory factory, java.util.Set<java.lang.String> filter) throws java.io.IOException
dataset
- the dataset instance.factory
- the curve factory instance.filter
- the set of attributes to ignore.
java.io.IOException
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
public void addListener(java.beans.PropertyChangeListener listener)
listener
- the listener to be added.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 |