Java Reference
In-Depth Information
Listing 10-8 depicts the Model and ModelDetail complex types
defined in the JDM Schema. Lines 1 to 6 illustrate the Model complex
type that contains the JDM standard model metadata types, such as
signature, buildSettings, effectiveBuildSettings, attributeStatistics, and
modelDetail, that we discussed in Sections 8.1.3 and 9.4.3. Lines 7 to 9
illustrate the ModelDetail complex type that uses the xsd:any to allow
any type of content as model detail (line 8). An optional format
attribute can be specified using the enumerated values defined in the
ImportExportFormat enumeration that defines some of the industry
standard data mining formats, such as PMML. As a result, the JDM
Schema allows specifying model details in any vendor-specific for-
mat. However, vendors can extend the JDM Schema to enforce spe-
cific formats such as PMML.
Listing 10-8
XML Schema complex types for the mining model and model details
1. <xsd:complexType name=" Model ">
<xsd:extension base="MiningObject">
2. <xsd:element name=" signature " type="ModelSignature" minOccurs="0"/>
3. <xsd:element name=" buildSettingsName " type="xsd:string"
<xsd:element name=" buildSettings " type="BuildSettings" minOccurs="0"/>
4. <xsd:element name=" effectiveBuildSettings " type="BuildSettings"
5. <xsd:element name=" attributeStatistics " type="AttributeStatisticsSet"
6. <xsd:element name=" modelDetail " type="ModelDetail" minOccurs="0"/>
<xsd:attribute name="uniqueIdentifier" type="xsd:string" use="optional"/>
<xsd:attribute name="version" type="xsd:string" use="optional"/>
<xsd:attribute name="majorVersion" type="xsd:string" use="optional"/>
<xsd:attribute name="minorVersion" type="xsd:string" use="optional"/>
<xsd:attribute name="providerName" type="xsd:string" use="optional"/>
<xsd:attribute name="providerVersion" type="xsd:string" use="optional"/>
<xsd:attribute name="applicationName" type="xsd:string" use="optional"/>
<xsd:attribute name="miningFunction" type="MiningFunction"
<xsd:attribute name="miningAlgorithm" type="MiningAlgorithm"
Search WWH ::

Custom Search