Compartilhar via


2.2.4.2.2.15.1.1 ScalarMiningStructureColumn

This complex type represents a scalar column in the MiningStructure. ScalarMiningStructureColumn extends the base class MiningStructureColumn.

   <xsd:complexType name="ScalarMiningStructureColumn">
     <xsd:all>
       <xsd:element name="Name" type="xsd:string"/>
       <xsd:element name="ID" type="xsd:string" minOccurs="0"/>
       <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
       <xsd:element name="Type" >
         <xsd:simpleType>
           <xsd:restriction base="xsd:string" >
             <xsd:enumeration value="Long" />
             <xsd:enumeration value="Boolean" />
             <xsd:enumeration value="Text" />
             <xsd:enumeration value="Double" />
             <xsd:enumeration value="Date" />
             <xsd:enumeration value="Table" />
           </xsd:restriction>
         </xsd:simpleType>
       </xsd:element>
       <xsd:element name="Annotations" minOccurs="0">
         <xsd:complexType>
           <xsd:sequence>
             <xsd:element name="Annotation"  type="Annotation"
                          minOccurs="0" maxOccurs="unbounded"/>
           </xsd:sequence>
         </xsd:complexType>
       </xsd:element>
       <xsd:element name="IsKey" type="xsd:boolean" minOccurs="0"/>
       <xsd:element name="Source" type="Binding"  minOccurs="0" />
       <xsd:element name="Distribution" type="xsd:string" minOccurs="0"/>
       <xsd:element name="ModelingFlags"   minOccurs="0" >
         <xsd:complexType>
           <xsd:sequence>
             <xsd:element name="ModelingFlag"  type="MiningModelingFlag"
                          minOccurs="0" maxOccurs="unbounded"/>
           </xsd:sequence>
         </xsd:complexType>
       </xsd:element>
       <xsd:element name="Content" >
         <xsd:simpleType>
           <xsd:restriction base="xsd:string" >
             <!-- This list is user-extensible  -->
             <xsd:enumeration value="Discrete" />
             <xsd:enumeration value="Continuous" />
             <xsd:enumeration value="Discretized" />
             <xsd:enumeration value="Ordered" />
             <xsd:enumeration value="Cyclical" />
             <xsd:enumeration value="Probability" />
             <xsd:enumeration value="Variance" />
             <xsd:enumeration value="StdDev" />
             <xsd:enumeration value="ProbabilityVariance" />
             <xsd:enumeration value="ProbabilityStdDev" />
             <xsd:enumeration value="Support" />
             <xsd:enumeration value="Key" />
           </xsd:restriction>
         </xsd:simpleType>
       </xsd:element>
       <xsd:element name="ClassifiedColumns" minOccurs="0" >
         <xsd:complexType>
           <xsd:sequence>
             <xsd:element name="ClassifiedColumnID"  type="xsd:string"
                          minOccurs="0" maxOccurs="unbounded"/>
           </xsd:sequence>
         </xsd:complexType>
       </xsd:element>
       <xsd:element name="DiscretizationMethod" type="xsd:string" minOccurs="0"/>
       <xsd:element name="DiscretizationBucketCount" type="xsd:integer" minOccurs="0"/>
       <xsd:element name="KeyColumns" minOccurs="0">
         <xsd:complexType>
           <xsd:sequence>
             <xsd:element name="KeyColumn"  type="DataItem" minOccurs="0"
                          maxOccurs="unbounded"/>
           </xsd:sequence>
         </xsd:complexType>
       </xsd:element>
       <xsd:element name="NameColumn" type="DataItem"  minOccurs="0" />
       <xsd:element name="Translations"  minOccurs="0">
         <xsd:complexType>
           <xsd:sequence>
             <xsd:element name="Translation"  type="Translation" minOccurs="0"
                          maxOccurs="unbounded"/>
           </xsd:sequence>
         </xsd:complexType>
       </xsd:element>
     </xsd:all>
   </xsd:complexType>

Element

Read-Only

Default value

Description

IsKey

False

When true, indicates that the column provides the key of the case; otherwise, false. One or more columns MAY be designated as the key. At least one column MUST be designated as the key.

Source

Empty

The data source for this column, if the mining structure is bound to OLAP objects. Source is of type "Binding". This element MAY be empty for mining structures based on relational data, but for OLAP-based mining structures, one of the following derived classes MUST be used: AttributeBinding, CubeAttributeBinding, or MeasureBinding.

Distribution

Empty

An extensible enumeration, such as Normal, Uniform, and LogNormal.

ModelingFlags

Empty

A collection of MiningModelingFlag objects.

If non-empty, the only supported string value is "NotNull".

Content

[Required]

An enumeration that describes the type of content represented by a mining structure column. All values might not necessarily be supported by all algorithms.

ClassifiedColumns

Empty

A string collection of the ID for any columns classified by this column.

DiscretizationMethod

Empty

(Mapped to Automatic for columns where content is discretized)

Defines the method to be used for discretization. Current values supported for this string element are as follows:

  • "Automatic" – The algorithm chooses the best technique among EqualAreas, Thresholds, and Clusters.

  • "EqualAreas" – For continuous values, specifies that the area that represents the distribution of each bucket is equal.

  • "Thresholds" - For continuous variables, specifies that bucket thresholds are based on inflection points of the distribution curve.

  • "Clusters" - Finds buckets by single dimension clustering by using the K-Means algorithm.

DiscretizationBucketCount

0

The number of buckets in which to discretize.

KeyColumns

Empty

The data source for this column, for mining structures bound to relational data (or unbound). Collection of objects of type DataItem to bind to values of this column. The Source element within the DataItem MUST be of type ColumnBinding.

NameColumn

Empty

An optional column binding containing the name of the key values (in the KeyColumns element). NameColumn is of type DataItem. The Source element within the DataItem MUST be of type ColumnBinding.

Translations

Empty

A collection of Translation objects.