weka.core
Interface Drawable
- All Known Implementing Classes:
- ADTree, AttributeSelectedClassifier, BayesNet, ClassifierTree, Cobweb, CostSensitiveClassifier, CVParameterSelection, FilteredClassifier, J48, LMT, M5P, NBTree, REPTree, ThresholdSelector, UserClassifier
- public interface Drawable
Interface to something that can be drawn as a graph.
- Version:
- $Revision: 1.8 $
- Author:
- Ashraf M. Kibriya(amk14@cs.waikato.ac.nz), Eibe Frank(eibe@cs.waikato.ac.nz)
Method Summary |
java.lang.String |
graph()
Returns a string that describes a graph representing
the object. |
int |
graphType()
Returns the type of graph representing
the object. |
NOT_DRAWABLE
public static final int NOT_DRAWABLE
- See Also:
- Constant Field Values
TREE
public static final int TREE
- See Also:
- Constant Field Values
BayesNet
public static final int BayesNet
- See Also:
- Constant Field Values
graphType
public int graphType()
- Returns the type of graph representing
the object.
- Returns:
- the type of graph representing the object
graph
public java.lang.String graph()
throws java.lang.Exception
- Returns a string that describes a graph representing
the object. The string should be in XMLBIF ver.
0.3 format if the graph is a BayesNet, otherwise
it should be in dotty format.
- Returns:
- the graph described by a string
- Throws:
java.lang.Exception
- if the graph can't be computed