

Amazon Fraud Detector는 2025년 11월 7일부터 신규 고객에게 더 이상 공개되지 않습니다. Amazon Fraud Detector와 유사한 기능을 알아보려면 Amazon SageMaker, AutoGluon 및를 살펴보세요 AWS WAF.

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# 레이블
<a name="labels"></a>

레이블은 이벤트가 시기성인지 합법적인지를 분류합니다. 레이블은 이벤트 유형과 연결되며 Amazon Fraud Detector에서 기계 학습 모델을 훈련하는 데 사용됩니다. 온라인 사기 인사이트(OFI) 또는 트랜잭션 사기 인사이트(TFI) 모델을 훈련하려는 경우 훈련 데이터 세트에서 최소 400개의 이벤트를 *사기성* 또는 *합법적인* 것으로 분류해야 합니다. *사기*, *적법*성, *1* 또는 *0*과 같은 레이블을 사용하여 훈련 데이터 세트의 이벤트를 분류할 수 있습니다. 훈련이 완료되면 훈련된 모델은 사기 이벤트를 평가하고 이러한 값을 사용하여 이벤트를 사기 또는 합법적인 것으로 분류합니다.

먼저 훈련 데이터 세트에 사용된 값으로 레이블을 생성한 다음 사기 탐지 모델을 구축하고 훈련하는 데 사용된 이벤트 유형과 레이블을 연결해야 합니다.

# 레이블 생성
<a name="create-a-label"></a>

Amazon Fraud Detector 콘솔에서 [put-label](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/frauddetector/put-label.html) 명령을 사용하거나 [PutLabel](https://docs.aws.amazon.com/frauddetector/latest/api/API_PutLabel.html) API를 사용하거나를 사용하여 레이블을 생성할 수 있습니다 AWS SDK for Python (Boto3).

## Amazon Fraud Detector 콘솔을 사용하여 레이블 생성
<a name="create-a-label-console"></a>

**레이블을 생성하려면**

1. [AWS Management Console](https://console.aws.amazon.com/)을 열고 계정에 로그인합니다.

1. Amazon Fraud Detector로 이동하여 왼쪽 탐색 창에서 **레이블**을 선택한 다음 **생성을** 선택합니다.

1. **레이블 생성** 페이지에서 사기 이벤트의 레이블 이름을 레이블 이름으로 입력합니다. 레이블 이름은 훈련 데이터 세트의 사기 활동을 나타내는 레이블과 일치해야 합니다. 선택적으로 레이블에 대한 설명을 입력합니다.

1. **레이블 생성을** 선택합니다.

1. 두 번째 레이블을 생성하고 합법적인 이벤트의 레이블 이름을 입력합니다. 레이블 이름이 훈련 데이터 세트의 합법적인 활동을 나타내는 값과 일치하는지 확인합니다.

## 를 사용하여 레이블 생성 AWS SDK for Python (Boto3)
<a name="create-a-label-using-the-aws-python-sdk"></a>

다음 AWS SDK for Python (Boto3) 예제 코드는 [PutLabel](https://docs.aws.amazon.com/frauddetector/latest/api/API_PutLabel.html) API를 사용하여 두 개의 레이블(사기, 적법)을 생성합니다. 레이블을 생성한 후 이벤트 유형에 레이블을 추가하여 특정 이벤트를 분류할 수 있습니다.

```
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'
)
```

# 레이블 업데이트
<a name="update-label"></a>

이벤트 데이터 세트가 Amazon Fraud Detector에 저장된 경우 이벤트에 대한 오프라인 사기 조사를 수행하고 기계 학습 피드백 루프를 닫으려는 경우와 같이 저장된 이벤트에 대한 레이블을 추가하거나 업데이트해야 할 수 있습니다.

 update[update-event-label](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/frauddetector/update-event-label.html) [UpdateEventLabel](https://docs.aws.amazon.com/frauddetector/latest/api/API_UpdateEventLabel.html) API를 사용하거나,를 사용하여 저장된 이벤트의 레이블을 추가하거나 업데이트할 수 있습니다. AWS SDK for Python (Boto3) 

다음 AWS SDK for Python (Boto3) 예제 코드는 `UpdateEventLabel` API를 사용하여 이벤트 유형 *등록*과 연결된 레이블 *사기*를 추가합니다.

```
import boto3
fraudDetector = boto3.client('frauddetector')

fraudDetector.update_event_label(
            eventId        = '802454d3-f7d8-482d-97e8-c4b6db9a0428',
            eventTypeName  = 'registration',
            assignedLabel  = 'fraud',
            labelTimestamp = '2020-07-13T23:18:21Z'
)
```

# Amazon Fraud Detector에 저장된 이벤트 데이터의 이벤트 레이블 업데이트
<a name="update-event-labels"></a>

이벤트에 대한 오프라인 사기 조사를 수행하고 기계 학습 피드백 루프를 닫으려는 경우와 같이 Amazon Fraud Detector에 이미 저장된 이벤트에 대한 사기 레이블을 추가하거나 업데이트해야 할 수 있습니다. Amazon Fraud Detector에 이미 저장된 이벤트의 레이블을 업데이트하려면 `UpdateEventLabel` API 작업을 사용합니다. 다음은 UpdateEventLabel API 호출의 예입니다.

```
import boto3
fraudDetector = boto3.client('frauddetector')

fraudDetector.update_event_label(
            eventId        = '802454d3-f7d8-482d-97e8-c4b6db9a0428',
            eventTypeName  = 'sample_registration',
            assignedLabel  = 'fraud',
            labelTimestamp = '2020-07-13T23:18:21Z'
)
```

# 레이블 삭제
<a name="delete-label"></a>

레이블을 삭제하면 Amazon Fraud Detector는 해당 레이블을 영구적으로 삭제하고 데이터는 더 이상 Amazon Fraud Detector에 저장되지 않습니다.

Amazon Fraud Detector의 이벤트 유형에 포함된 레이블은 삭제할 수 없습니다. 또한 이벤트 ID에 할당된 레이블을 삭제할 수 없습니다. 먼저 관련 이벤트 ID를 삭제해야 합니다.

Amazon Fraud Detector 콘솔에서, [delete-label](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/frauddetector/delete-label.html) 명령을 사용하거나, [DeleteLabel](https://docs.aws.amazon.com/frauddetector/latest/api/API_DeleteLabel.html) API를 사용하거나,를 사용하여 레이블을 삭제할 수 있습니다. AWS SDK for Python (Boto3)

## 콘솔을 사용하여 레이블 삭제
<a name="delete-label-console"></a>

**레이블을 삭제하려면**

1. 에 로그인 AWS Management Console 하고 [https://console.aws.amazon.com/frauddetector](https://console.aws.amazon.com/frauddetector) Amazon Fraud Detector 콘솔을 엽니다.

1. Amazon Fraud Detector 콘솔의 왼쪽 탐색 창에서 **리소스를** 선택한 다음 **레이블을** 선택합니다.

1. 삭제할 레이블을 선택합니다.

1. **작업**을 선택한 후 **삭제**를 선택합니다.

1. 레이블 이름을 입력한 다음 **레이블 삭제**를 선택합니다.

## 를 사용하여 레이블 삭제 AWS SDK for Python (Boto3)
<a name="delete-label-using-the-aws-python-sdk"></a>

다음 AWS SDK for Python (Boto3) 예제 코드는 [DeleteLabel](https://docs.aws.amazon.com/frauddetector/latest/api/API_DeleteLabel.html) API를 사용하여 레이블 *문자*를 삭제합니다.

```
import boto3
fraudDetector = boto3.client('frauddetector')

fraudDetector.delete_event_label (
    name = 'legit'
)
```