TBClassesListItem Class

TPersistent→TClassesListItem→TBClassesListItem

type TBClassesListItem = class(TClassesListItem)

Classification class definition for the Naive Bayes classification algorithm.

Classification class definition for the Naive Bayes classification algorithm.

Constructors

NameDescription
CreateCreate the component and pass a TClassesList object as an owner.

Properties

NameTypeDescription
EnabledbooleanTrue, if the class should be considered in the classification process.
LearnedCasesintegerStores the number of total learned cases.

Methods

NameDescription
ClassifyClassify record with mixed real and discrete attributes.
ClassifyDiscreteClassify record with discrete attributes.
ClassifyFloatClassify record with real valued attributes.
LearnLearn a new record containing both discrete and real attributes.
LearnDiscreteLearn the values of discrete attributes of the new example.
LearnFloatLearn the values of continuous (real valued) attributes of the new example.
LoadFromStreamLoad the object from the stream.
PriorProbabilityCompute prior probability after the learning has been completed.
ResetReset learned data.
ResetWeightsReset the Weight field of every attribute back to one.
SaveToStreamSave the object to stream.
SoftResetResets learned data without reseting weights and excluded attributes.

Constants

NameTypeDescription
DiscreteATDiscreteRecordArrayStores the statistics about the discrete attributes.
FloatATFloatRecordArrayStores the statistics about the continuous (real valued) attributes.