类 XMLExperiment
java.lang.Object
weka.core.xml.XMLSerialization
weka.core.xml.XMLBasicSerialization
weka.experiment.xml.XMLExperiment
- 所有已实现的接口:
RevisionHandler
This class serializes and deserializes an Experiment instance to and
fro XML.
It omits the
Since there's no read-method for
It omits the
options
from the Experiment, since these are handled
by the get/set-methods. For the Classifier
class with all its
derivative classes it stores only debug
and options
.
For SplitEvaluator
and ResultProducer
only the
options are retrieved. The PropertyNode
is done manually since
it has no get/set-methods for its public fields.Since there's no read-method for
m_ClassFirst
we always save it
as false
.- 版本:
- $Revision: 1.6 $
- 作者:
- FracPete (fracpete at waikato dot ac dot nz)
- 另请参阅:
-
Experiment.m_ClassFirst
-
字段概要
字段修饰符和类型字段说明static final String
the name of the classFirst propertystatic final String
PropertyNode memberstatic final String
PropertyNode memberstatic final String
PropertyNode member从类继承的字段 weka.core.xml.XMLBasicSerialization
VAL_CELLS, VAL_KEY, VAL_MAPPING, VAL_VALUE
从类继承的字段 weka.core.xml.XMLSerialization
ATT_ARRAY, ATT_ARRAY_DEFAULT, ATT_CLASS, ATT_NAME, ATT_NULL, ATT_NULL_DEFAULT, ATT_PRIMITIVE, ATT_PRIMITIVE_DEFAULT, ATT_VERSION, DOCTYPE, ROOT_NODE, TAG_OBJECT, VAL_NO, VAL_ROOT, VAL_YES
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
clear()
generates internally a new XML document and clears also the IgnoreList and the mappings for the Read/Write-MethodsReturns the revision string.static void
for testing only.readPropertyNode
(Element node) builds the PropertyNode from the given DOM node.writePropertyNode
(Element parent, Object o, String name) adds the given PropertyNode to a DOM structure.从类继承的方法 weka.core.xml.XMLBasicSerialization
readCollection, readCostMatrixOld, readDefaultListModel, readMap, readMatrix, readMatrixOld, writeCollection, writeCostMatrixOld, writeDefaultListModel, writeMap, writeMatrix, writeMatrixOld
从类继承的方法 weka.core.xml.XMLSerialization
fromXML, getVersion, read, read, read, read, readBooleanFromXML, readByteFromXML, readCharFromXML, readDoubleFromXML, readFloatFromXML, readFromXML, readFromXML, readIntFromXML, readLongFromXML, readShortFromXML, toXML, write, write, write, write, writeToXML
-
字段详细资料
-
构造器详细资料
-
XMLExperiment
initializes the serialization- 抛出:
Exception
- if initialization fails
-
-
方法详细资料
-
clear
generates internally a new XML document and clears also the IgnoreList and the mappings for the Read/Write-Methods- 覆盖:
clear
在类中XMLBasicSerialization
- 抛出:
Exception
- if initializing fails
-
writePropertyNode
adds the given PropertyNode to a DOM structure.- 参数:
parent
- the parent of this object, e.g. the class this object is a member ofo
- the Object to describe in XMLname
- the name of the object- 返回:
- the node that was created
- 抛出:
Exception
- if the DOM creation fails
-
readPropertyNode
builds the PropertyNode from the given DOM node.- 参数:
node
- the associated XML node- 返回:
- the instance created from the XML description
- 抛出:
Exception
- if instantiation fails- 另请参阅:
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中XMLBasicSerialization
- 返回:
- the revision
-
main
for testing only. if the first argument is a filename with ".xml" as extension it tries to generate an instance from the XML description and does atoString()
of the generated object. Otherwise it loads the binary file, saves the XML representation in a file with the original filename appended by ".xml" and once again in a binary file with the original filename appended by ".exp".- 参数:
args
- the commandline arguments- 抛出:
Exception
- if something goes wrong, e.g., file not found
-