public static interface LabelSchema.Builder extends SdkPojo, CopyableBuilder<LabelSchema.Builder,LabelSchema>
Modifier and Type | Method and Description |
---|---|
LabelSchema.Builder |
labelMapper(Map<String,? extends Collection<String>> labelMapper)
The label mapper maps the Amazon Fraud Detector supported model classification labels (
FRAUD ,
LEGIT ) to the appropriate event type labels. |
equalsBySdkFields, sdkFields
copy
applyMutation, build
LabelSchema.Builder labelMapper(Map<String,? extends Collection<String>> labelMapper)
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" => ["1"]}
or {"FRAUD" => ["false"]
, "LEGIT" => ["true"]}
or {"FRAUD" => ["fraud", "abuse"]
,
"LEGIT" => ["legit", "safe"]}
. 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.
labelMapper
- 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" => ["1"]}
or
{"FRAUD" => ["false"]
, "LEGIT" => ["true"]}
or
{"FRAUD" => ["fraud", "abuse"]
, "LEGIT" => ["legit", "safe"]}
. 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.Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.