Step 4: Configure rule execution and define rule order - Amazon Fraud Detector

Step 4: Configure rule execution and define rule order

The rule execution mode for the rules included in the detector version determines if all the rules you define are evaluated, or if rule evaluation stops at the first matched rule. You can define and edit the rule execution mode at the detector version level, when the detector version is in draft status.

The default rule execution mode is FIRST_MATCHED.

First matched

First matched rule execution mode returns the outcomes for the first matching rule based on defined rule order. If you specify FIRST_MATCHED, Amazon Fraud Detector evaluates rules sequentially, first to last, stopping at the first matched rule. Amazon Fraud Detector then provides the outcomes for that single rule.

The order in which you execute rules can affect the resulting fraud prediction outcome. After you have created your rules, re-order the rules to execute them in the desired order by following these steps:

If your high_fraud_risk rule is not already on the top of your rule list, choose Order, and then choose 1. This moves high_fraud_risk to the first position.

Repeat this process so that your medium_fraud_risk rule is in the second position and your low_fraud_risk rule is in the third position.

All matched

All matched rule execution mode returns outcomes for all matched rules, regardless of rule order. If you specify ALL_MATCHED, Amazon Fraud Detector evaluates all rules and returns the outcomes for all matched rules.

Select FIRST_MATCHED and then choose Next.