程序包 weka.core.xml
类 XMLInstances
java.lang.Object
weka.core.xml.XMLDocument
weka.core.xml.XMLInstances
- 所有已实现的接口:
Serializable
,RevisionHandler
XML representation of the Instances class.
- 版本:
- $Revision: 1.4 $
- 作者:
- fracpete (fracpete at waikato dot ac dot nz)
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明static final String
the class attributestatic final String
the format attribute (for date attributes)static final String
the index attributestatic final String
the missing attributestatic final String
the type attributestatic final String
the version attributestatic final String
the weight attributestatic final String
the DTDstatic String
The filename extension that should be used for xrff filesstatic final String
the attribute elementstatic final String
the attributes elementstatic final String
the body elementstatic final String
the root elementstatic final String
the header elementstatic final String
the instance elementstatic final String
the data elementstatic final String
the label elementstatic final String
the labels elementstatic final String
the meta-data elementstatic final String
the notes elementstatic final String
the property elementstatic final String
the value elementstatic final String
the value for datestatic final String
the value for nominalstatic final String
the value for normalstatic final String
the value for numericstatic final String
the value for relationalstatic final String
the value for sparsestatic final String
the value for string从类继承的字段 weka.core.xml.XMLDocument
ATT_NAME, DTD_ANY, DTD_AT_LEAST_ONE, DTD_ATTLIST, DTD_CDATA, DTD_DOCTYPE, DTD_ELEMENT, DTD_IMPLIED, DTD_OPTIONAL, DTD_PCDATA, DTD_REQUIRED, DTD_SEPARATOR, DTD_ZERO_OR_MORE, PI, VAL_NO, VAL_YES
-
构造器概要
构造器构造器说明the default constructorXMLInstances
(Reader reader) generates the Instances directly from the reader containing the XML data.XMLInstances
(Instances data) generates the XML structure based on the given data -
方法概要
修饰符和类型方法说明returns the current instances, either the ones that were set or the ones that were generated from the XML structure.Returns the revision string.static void
takes an XML document as first argument and then outputs the Instances statisticsvoid
setInstances
(Instances data) builds up the XML structure based on the given datavoid
reads the XML structure from the given reader从类继承的方法 weka.core.xml.XMLDocument
clear, evalBoolean, evalDouble, evalString, findNodes, getBuilder, getChildTags, getChildTags, getContent, getDocType, getDocument, getFactory, getNode, getRootNode, getValidating, newDocument, print, read, read, read, read, setDocType, setDocument, setRootNode, setValidating, toString, write, write, write, write
-
字段详细资料
-
FILE_EXTENSION
The filename extension that should be used for xrff files -
TAG_DATASET
the root element- 另请参阅:
-
TAG_HEADER
the header element- 另请参阅:
-
TAG_BODY
the body element- 另请参阅:
-
TAG_NOTES
the notes element- 另请参阅:
-
TAG_ATTRIBUTES
the attributes element- 另请参阅:
-
TAG_ATTRIBUTE
the attribute element- 另请参阅:
-
TAG_LABELS
the labels element- 另请参阅:
-
TAG_LABEL
the label element- 另请参阅:
-
TAG_METADATA
the meta-data element- 另请参阅:
-
TAG_PROPERTY
the property element- 另请参阅:
-
TAG_INSTANCES
the data element- 另请参阅:
-
TAG_INSTANCE
the instance element- 另请参阅:
-
TAG_VALUE
the value element- 另请参阅:
-
ATT_VERSION
the version attribute- 另请参阅:
-
ATT_TYPE
the type attribute- 另请参阅:
-
ATT_FORMAT
the format attribute (for date attributes)- 另请参阅:
-
ATT_CLASS
the class attribute- 另请参阅:
-
ATT_INDEX
the index attribute- 另请参阅:
-
ATT_WEIGHT
the weight attribute- 另请参阅:
-
ATT_MISSING
the missing attribute- 另请参阅:
-
VAL_NUMERIC
the value for numeric- 另请参阅:
-
VAL_DATE
the value for date- 另请参阅:
-
VAL_NOMINAL
the value for nominal- 另请参阅:
-
VAL_STRING
the value for string- 另请参阅:
-
VAL_RELATIONAL
the value for relational- 另请参阅:
-
VAL_NORMAL
the value for normal- 另请参阅:
-
VAL_SPARSE
the value for sparse- 另请参阅:
-
DOCTYPE
the DTD
-
-
构造器详细资料
-
XMLInstances
the default constructor- 抛出:
Exception
- if XML initialization fails
-
XMLInstances
generates the XML structure based on the given data- 参数:
data
- the data to build the XML structure from- 抛出:
Exception
- if initialization/generation fails
-
XMLInstances
generates the Instances directly from the reader containing the XML data.- 参数:
reader
- the reader for the XML data- 抛出:
Exception
- if something goes wrong
-
-
方法详细资料
-
setInstances
builds up the XML structure based on the given data- 参数:
data
- data to generate the XML from
-
getInstances
returns the current instances, either the ones that were set or the ones that were generated from the XML structure.- 返回:
- the current instances
-
setXML
reads the XML structure from the given reader- 参数:
reader
- the reader to get the XML from- 抛出:
Exception
- if
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中XMLDocument
- 返回:
- the revision
-
main
takes an XML document as first argument and then outputs the Instances statistics- 参数:
args
- the commandline options
-