deprecatedclass %iKnow.Classification.Definition.ClassificationMethod
extends node
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 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 ClassificationRules
as ClassificationRules;
If method="rules", this element contains the actual decision rules for deriving the category from the text input
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 PMML
as %DeepSee.PMML.Definition.PMML;
If method="pmml", this element contains the PMML model to be used for categorization
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 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 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.
method %Validate(ByRef pInfo)
as %Status