TrainingJobDefinition

public struct TrainingJobDefinition : AWSShape

Undocumented

  • Declaration

    Swift

    public static var _members: [AWSShapeMember]
  • The hyperparameters used for the training job.

    Declaration

    Swift

    public let hyperParameters: [String : String]?
  • An array of Channel objects, each of which specifies an input source.

    Declaration

    Swift

    public let inputDataConfig: [Channel]
  • the path to the S3 bucket where you want to store model artifacts. Amazon SageMaker creates subfolders for the artifacts.

    Declaration

    Swift

    public let outputDataConfig: OutputDataConfig
  • The resources, including the ML compute instances and ML storage volumes, to use for model training.

    Declaration

    Swift

    public let resourceConfig: ResourceConfig
  • Specifies a limit to how long a model training job can run. When the job reaches the time limit, Amazon SageMaker ends the training job. Use this API to cap model training costs. To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which delays job termination for 120 seconds. Algorithms can use this 120-second window to save the model artifacts.

    Declaration

    Swift

    public let stoppingCondition: StoppingCondition
  • The input mode used by the algorithm for the training job. For the input modes that Amazon SageMaker algorithms support, see Algorithms. If an algorithm supports the File input mode, Amazon SageMaker downloads the training data from S3 to the provisioned ML storage Volume, and mounts the directory to docker volume for training container. If an algorithm supports the Pipe input mode, Amazon SageMaker streams data directly from S3 to the container.

    Declaration

    Swift

    public let trainingInputMode: TrainingInputMode
  • Undocumented

    Declaration

    Swift

    public init(hyperParameters: [String : String]? = nil, inputDataConfig: [Channel], outputDataConfig: OutputDataConfig, resourceConfig: ResourceConfig, stoppingCondition: StoppingCondition, trainingInputMode: TrainingInputMode)
  • Declaration

    Swift

    public func validate(name: String) throws