Class Reference
IRIS for UNIX 2024.1.2
|
|
Private
Storage
|
![]() |
![]() |
![]() |
![]() |
Returns all categories added so far: pCategories(n) = $lb([name], [record count])
Loads categories based on the value of the supplied SQL expression. pExpression should either be the (SQL) name of a column onTableName , or a valid SQL expression that can be selected from that table (aliased as if required "t").
Utility method to batch-test the classifier against a test set pTestSet, which can be supplied as a valid SQL WHERE clause to be queried against
TableName . Per-record results are returned through pResult:
pResult(n) = $lb([record ID], [actual category], [predicted category])pAccuracy will contain the raw accuracy (# of records predicted correctly) of the current model. Use
%iKnow.Classificaton.Utils for more advanced model testing.If the current model's category options were added through
%AddCategory without providing an appropriate category specification (again through a SQL WHERE clause), rather than through a call to%LoadCategoriesFromColumn (which setsCategoryColumn ), supply a column name or SQL expression through pCategorySpec where the actual category values to test against can be found.