TDBClassifier Class

TComponent→TDBClassifier

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.

Constructors

NameDescription
CreateCreate the component.

Properties

NameTypeDescription
AttributesTFieldColumnsSpecifies the attributes used by the classification process.
AutoAttributesbooleanIf True, the LearnData will call the FieldsToAttributes method.
ClassFieldstringDefines the field which is considered to be the Class field.
ClassifierTClassifierAssign the classification component of your choice to this property.
DatasetTDatasetAssign the dataset with data to this property.
DataTypeTAttributeDataTypeSpecifies the maping of field types to attribute types.
IgnoreFieldsTStringListDefines which fields are to be ignored.
IsUpdatingbooleanIf this property is True, the component is in the process of reading the records from the Dataset.
MissingDiscreteIndexintegerSpecifies discrete value index indicating a missing discrete value.
MissingDiscreteValuestringSpecifies value indicating a missing discrete value.
OnClassifyDatasetTOnClassifyDatasetEvent is called just before the classification test.
OnLearnDatasetTOnLearnDatasetEvent is called just before the learn operation.

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.
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.