You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::FraudDetector::Types::LabelSchema

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing LabelSchema as input to an Aws::Client method, you can use a vanilla Hash:

{
  label_mapper: { # required
    "string" => ["string"],
  },
}

The label schema.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#label_mapperHash<String,Array<String>>

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.

Returns:

  • (Hash<String,Array<String>>)

    The label mapper maps the Amazon Fraud Detector supported model classification labels (FRAUD, LEGIT) to the appropriate event type labels.