Skip to content

Create Model Version

frauddetector_create_model_version R Documentation

Creates a version of the model using the specified model type and model id

Description

Creates a version of the model using the specified model type and model id.

Usage

frauddetector_create_model_version(modelId, modelType,
  trainingDataSource, trainingDataSchema, externalEventsDetail,
  ingestedEventsDetail, tags)

Arguments

modelId

[required] The model ID.

modelType

[required] The model type.

trainingDataSource

[required] The training data source location in Amazon S3.

trainingDataSchema

[required] The training data schema.

externalEventsDetail

Details of the external events data used for model version training. Required if trainingDataSource is EXTERNAL_EVENTS.

ingestedEventsDetail

Details of the ingested events data used for model version training. Required if trainingDataSource is INGESTED_EVENTS.

tags

A collection of key and value pairs.

Value

A list with the following syntax:

list(
  modelId = "string",
  modelType = "ONLINE_FRAUD_INSIGHTS"|"TRANSACTION_FRAUD_INSIGHTS"|"ACCOUNT_TAKEOVER_INSIGHTS",
  modelVersionNumber = "string",
  status = "string"
)

Request syntax

svc$create_model_version(
  modelId = "string",
  modelType = "ONLINE_FRAUD_INSIGHTS"|"TRANSACTION_FRAUD_INSIGHTS"|"ACCOUNT_TAKEOVER_INSIGHTS",
  trainingDataSource = "EXTERNAL_EVENTS"|"INGESTED_EVENTS",
  trainingDataSchema = list(
    modelVariables = list(
      "string"
    ),
    labelSchema = list(
      labelMapper = list(
        list(
          "string"
        )
      ),
      unlabeledEventsTreatment = "IGNORE"|"FRAUD"|"LEGIT"|"AUTO"
    )
  ),
  externalEventsDetail = list(
    dataLocation = "string",
    dataAccessRoleArn = "string"
  ),
  ingestedEventsDetail = list(
    ingestedEventsTimeWindow = list(
      startTime = "string",
      endTime = "string"
    )
  ),
  tags = list(
    list(
      key = "string",
      value = "string"
    )
  )
)