labelMapper property
The label mapper maps the Amazon Fraud Detector supported model
classification labels (FRAUD
, LEGIT
) to the
appropriate event type labels. For example, if "FRAUD
" and
"LEGIT
" are Amazon Fraud Detector supported labels, this mapper
could be: {"FRAUD" =>
, "0"
"LEGIT" =>
or "1"
}{"FRAUD" =>
, "false"
"LEGIT" =>
or "true"
}{"FRAUD" =>
,
"fraud", "abuse"
"LEGIT" =>
. The value part of the mapper
is a list, because you may have multiple label variants from your event type
for a single Amazon Fraud Detector label."legit", "safe"
}
Implementation
final Map<String, List<String>> labelMapper;