TDBClassifier Class

TComponentTDBClassifier

type TDBClassifier = class(TComponent);

Use the component to perform classification on the data stored in any TDataset descendant.

The component requires you to connect the appropriate classification component (select the algorithm) and the dataset on which to perform the classification and/or learning. Dataset field layout between the learn and classification run must match.

Properties

NameTypeDescription
IsUpdatingbooleanIf this property is True, the component is in the process of reading the records from the Dataset.

Methods

NameDescription
AssignAssign the values of published properties from Source.
ClassifyRecordClassify the current record and return the name of the class.
ClassifyTestPerform classification test.
ClearClears the list of attributes and all learned data of the attached classifier.
CreateCreate the component.
DestroyDestroy the component.
DiscreteAttributeReturns the index in the Attributes list of the discrete attribute stored in the array of discrete attributes at position Index.
FieldsToAttributesAdds an item to Attributes list property for every field in the dataset.
FillFieldItems
FloatAttributeReturns the index in the Attributes list of the real valued attribute stored in the array of real valued attributes at position Index.
InitializeAttributesUses the field definitions of the dataset and fields defined with Attributes property to set the AttributeKind and AttributeIndex properties.
LearnDataTeach the classifier attached to the Classifier property with the data in the dataset.
LearnRecordTeach the classifier attached to the Classifier property with the current record in the dataset.