Create label
You can create labels in the Amazon Fraud Detector console, using the put-label
Create a label using the Amazon Fraud Detector console
To create labels,
-
Open the AWS Management Console
and sign in to your account. -
Navigate to Amazon Fraud Detector, choose Labels in the left navigation, then choose Create.
-
In the Create label page, enter your label name for fraudulent event as the label name. The label name must correspond to the label that represents fraudulent activity in your training dataset. Optionally, enter a description of the label.
-
Choose Create label.
-
Create a second label and enter a label name for legitimate event. Make sure the label name corresponds to the value that represents the legitimate activity in your training dataset.
Create a label using the AWS SDK for Python (Boto3)
The following AWS SDK for Python (Boto3) example code creates two labels (fraud, legit) using the PutLabel API. After creating the labels, you can add them to an event type to classify specific events.
import boto3 fraudDetector = boto3.client('frauddetector') fraudDetector.put_label( name = 'fraud', description = 'label for fraud events' ) fraudDetector.put_label( name = 'legit', description = 'label for legitimate events' )