Skip to main content


deprecated class %iKnow.Classification.Definition.ClassificationMethod extends %iKnow.Classification.Definition.node

Property Inventory

Method Inventory


property CategoryTermWeights as %DeepSee.PMML.Definition.Util.Matrix;
This matrix contains the term weights within the specific categories of this classifier when method is "cosineSimilarity", "euclideanDistance", "naiveBayes" or "linearRegression". Rows correspond positionally to the categories in the Categories element and columns to the terms in the TermDictionary, appended with any MetadataProperty elements. The meaning of the "weight" value is dependent on the classification method and might correspond to an actual weight (vector space), a probability (naiveBayes) or coefficient (regression)
Property methods: CategoryTermWeightsGet(), CategoryTermWeightsGetSwizzled(), CategoryTermWeightsIsValid(), CategoryTermWeightsNewObject(), CategoryTermWeightsSet()
property CategoryWeights as %DeepSee.PMML.Definition.Util.Array;
When method="naiveBayes", this array contains any a-priori probabilities of the categories, used to weigh the per-category term-based probabilities.
Property methods: CategoryWeightsGet(), CategoryWeightsGetSwizzled(), CategoryWeightsIsValid(), CategoryWeightsNewObject(), CategoryWeightsSet()
property ClassificationRules as ClassificationRules;
If method="rules", this element contains the actual decision rules for deriving the category from the text input
Property methods: ClassificationRulesGet(), ClassificationRulesGetSwizzled(), ClassificationRulesIsValid(), ClassificationRulesNewObject(), ClassificationRulesSet()
property GlobalTermWeights as %DeepSee.PMML.Definition.Util.Array;
Any global term weights for the terms in the TermDictionary, based on their corpus-wide relevance. Used to weigh the Document Vector. This property cannot be used when method = "naiveBayes".
Property methods: GlobalTermWeightsGet(), GlobalTermWeightsGetSwizzled(), GlobalTermWeightsIsValid(), GlobalTermWeightsNewObject(), GlobalTermWeightsSet()
property PMML as %DeepSee.PMML.Definition.PMML;
If method="pmml", this element contains the PMML model to be used for categorization
Property methods: PMMLGet(), PMMLGetSwizzled(), PMMLIsValid(), PMMLNewObject(), PMMLSet()
property localTermWeights as %String (VALUELIST = ",linear,binary,logarithmic", XMLPROJECTION = "ATTRIBUTE") [ InitialExpression = "binary" , Required ];
The local term weight metric to use to build the Document Vector. The default setting (binary) means simple 0s and 1s will be used to identify if the term occurred in the document or not. Some values for method impose restrictions on this property.
Property methods: localTermWeightsDisplayToLogical(), localTermWeightsGet(), localTermWeightsIsValid(), localTermWeightsLogicalToDisplay(), localTermWeightsLogicalToOdbc(), localTermWeightsNormalize(), localTermWeightsSet()
property method as %String (VALUELIST = ",cosineSimilarity,euclideanDistance,naiveBayes,linearRegression,pmml,rules", XMLPROJECTION = "ATTRIBUTE") [ Required ];
This is the method the classifier will use to match the document vector against the different Categories. Depending on this method, the weights in the CategoryTermWeights vectors will represent different metrics.
Property methods: methodDisplayToLogical(), methodGet(), methodIsValid(), methodLogicalToDisplay(), methodLogicalToOdbc(), methodNormalize(), methodSet()
property normalization as %String (VALUELIST = ",none,cosine", XMLPROJECTION = "ATTRIBUTE") [ InitialExpression = "none" , Required ];
The normalization function to apply to the Document Vector. Some values for method impose restrictions on this property.
Property methods: normalizationDisplayToLogical(), normalizationGet(), normalizationIsValid(), normalizationLogicalToDisplay(), normalizationLogicalToOdbc(), normalizationNormalize(), normalizationSet()


method %Validate(ByRef pInfo) as %Status

Inherited Members

Inherited Methods

FeedbackOpens in a new tab