CategoryPredictionDTO
Represents the predicted category for a transaction with confidence and strategy details.
transactionIdinteger<int64>
ID of the transaction that was categorized
Example:
12345descriptionstring
Description of the transaction
Example:
Grocery store paymentcategoryIdinteger<int64>
ID of the predicted category
Example:
10categoryCodestring
Code of the predicted category
Example:
FOODcategoryNamestring
Name of the predicted category
Example:
Food & Groceriesconfidencenumber<double>
Confidence score of the prediction
Example:
0.92alternatives object
Alternative category predictions with confidence scores
property name*number<double>
Alternative category predictions with confidence scores
needsVerificationboolean
Indicates whether the result needs human verification
Example:
falsestrategyTypestring
The strategy used to categorize the transaction
Possible values: [LABEL_BASED, ML_BASED, LLM_BASED]
Example:
MLCategoryPredictionDTO
{
"transactionId": 12345,
"description": "Grocery store payment",
"categoryId": 10,
"categoryCode": "FOOD",
"categoryName": "Food & Groceries",
"confidence": 0.92,
"alternatives": {
"FOOD": 0.92,
"ENTERTAINMENT": 0.07
},
"needsVerification": false,
"strategyType": "ML"
}