TKNearestNeighbors.LeaveOneOut Property

property LeaveOneOut: integer read FLeaveOneOut write SetLeaveOneOut default -1;

Set the value of this property to the index of the example that you want to be ignored during the classification.

Returns: integer

Remarks:

This property is usefull for testing the classification accuracy, because the current example classified can be left out from the comparison. Set this property to some value smaller then zero, to always consider all learned examples.