Skip to main content

%DeepSee.PMML.Model.NaiveBayes

Class %DeepSee.PMML.Model.NaiveBayes Extends AbstractModel [ Abstract, System = 4 ]

Parameters

SUPPORTSSIMPLEMODE

Parameter SUPPORTSSIMPLEMODE As BOOLEAN [ Internal ] = 1;

THRESHOLD

Parameter THRESHOLD As INTEGER;

TRACEWEIGHTTYPE

Parameter TRACEWEIGHTTYPE = "multiply";

Properties

Counts

Property Counts [ Internal, MultiDimensional, Private ];

..Counts("targetValue") = total count for [targetValue] ..Counts("targetValue","fieldName") = total non-missing count for [field] with [targetValue] ..Counts("targetValue","fieldName","fieldValue") = count for [field]=[fieldValue] with [targetValue]

TraceWeights

Property TraceWeights [ Internal, MultiDimensional ];

Distribution

Property Distribution [ Internal, MultiDimensional, Private ];

..Distribution("targetValue", "fieldName", "mean" or "variance)

Methods

%GetPredictedFieldFromDef

ClassMethod %GetPredictedFieldFromDef(pDefinition As %DeepSee.PMML.Definition.Models.AbstractModel) As %String [ Internal ]

%CreateModelClass

ClassMethod %CreateModelClass(pClass As %Dictionary.ClassDefinition, pDefinition As %DeepSee.PMML.Definition.Models.AbstractModel) As %Status [ Internal ]

%OnGetOutputFeature

ClassMethod %OnGetOutputFeature(pMethod As %Stream.Object, pDefinition As %DeepSee.PMML.Definition.Models.AbstractModel, pOutputField As %DeepSee.PMML.Definition.OutputField, ByRef pFeatureValueVar As %String, Output pSupported As %Boolean) As %Status [ Internal, Private ]

%Factorial

ClassMethod %Factorial(input As %Integer) As %Integer

GetLikelihoods

Method GetLikelihoods(ByRef pObservation, Output pLikelihoods) As %Status

Output: pLikelihoods(tOutputValue) = likelihood