Create label - Amazon Fraud Detector

Create label

You can create labels in the Amazon Fraud Detector console, using the put-label command, using the PutLabel API, or using the AWS SDK for Python (Boto3).

Create a label using the Amazon Fraud Detector console

To create labels,
  1. Open the AWS Management Console and sign in to your account.

  2. Navigate to Amazon Fraud Detector, choose Labels in the left navigation, then choose Create.

  3. 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.

  4. Choose Create label.

  5. 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' )