amazonka-sagemaker-2.0: Amazon SageMaker Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SageMaker.Types.HyperParameterTrainingJobDefinition

Description

 
Synopsis

Documentation

data HyperParameterTrainingJobDefinition Source #

Defines the training jobs launched by a hyperparameter tuning job.

See: newHyperParameterTrainingJobDefinition smart constructor.

Constructors

HyperParameterTrainingJobDefinition' 

Fields

  • checkpointConfig :: Maybe CheckpointConfig
     
  • definitionName :: Maybe Text

    The job definition name.

  • enableInterContainerTrafficEncryption :: Maybe Bool

    To encrypt all communications between ML compute instances in distributed training, choose True. Encryption provides greater security for distributed training, but training might take longer. How long it takes depends on the amount of communication between compute instances, especially if you use a deep learning algorithm in distributed training.

  • enableManagedSpotTraining :: Maybe Bool

    A Boolean indicating whether managed spot training is enabled (True) or not (False).

  • enableNetworkIsolation :: Maybe Bool

    Isolates the training container. No inbound or outbound network calls can be made, except for calls between peers within a training cluster for distributed training. If network isolation is used for training jobs that are configured to use a VPC, SageMaker downloads and uploads customer data and model artifacts through the specified VPC, but the training container does not have network access.

  • hyperParameterRanges :: Maybe ParameterRanges
     
  • hyperParameterTuningResourceConfig :: Maybe HyperParameterTuningResourceConfig

    The configuration for the hyperparameter tuning resources, including the compute instances and storage volumes, used for training jobs launched by the tuning job. By default, storage volumes hold model artifacts and incremental states. Choose File for TrainingInputMode in the AlgorithmSpecification parameter to additionally store training data in the storage volume (optional).

  • inputDataConfig :: Maybe (NonEmpty Channel)

    An array of Channel objects that specify the input for the training jobs that the tuning job launches.

  • resourceConfig :: Maybe ResourceConfig

    The resources, including the compute instances and storage volumes, to use for the training jobs that the tuning job launches.

    Storage volumes store model artifacts and incremental states. Training algorithms might also use storage volumes for scratch space. If you want SageMaker to use the storage volume to store the training data, choose File as the TrainingInputMode in the algorithm specification. For distributed training algorithms, specify an instance count greater than 1.

    If you want to use hyperparameter optimization with instance type flexibility, use HyperParameterTuningResourceConfig instead.

  • retryStrategy :: Maybe RetryStrategy

    The number of times to retry the job when the job fails due to an InternalServerError.

  • staticHyperParameters :: Maybe (HashMap Text Text)

    Specifies the values of hyperparameters that do not change for the tuning job.

  • tuningObjective :: Maybe HyperParameterTuningJobObjective
     
  • vpcConfig :: Maybe VpcConfig

    The VpcConfig object that specifies the VPC that you want the training jobs that this hyperparameter tuning job launches to connect to. Control access to and from your training container by configuring the VPC. For more information, see Protect Training Jobs by Using an Amazon Virtual Private Cloud.

  • algorithmSpecification :: HyperParameterAlgorithmSpecification

    The HyperParameterAlgorithmSpecification object that specifies the resource algorithm to use for the training jobs that the tuning job launches.

  • roleArn :: Text

    The Amazon Resource Name (ARN) of the IAM role associated with the training jobs that the tuning job launches.

  • outputDataConfig :: OutputDataConfig

    Specifies the path to the Amazon S3 bucket where you store model artifacts from the training jobs that the tuning job launches.

  • stoppingCondition :: StoppingCondition

    Specifies a limit to how long a model hyperparameter training job can run. It also specifies how long a managed spot training job has to complete. When the job reaches the time limit, SageMaker ends the training job. Use this API to cap model training costs.

Instances

Instances details
FromJSON HyperParameterTrainingJobDefinition Source # 
Instance details

Defined in Amazonka.SageMaker.Types.HyperParameterTrainingJobDefinition

ToJSON HyperParameterTrainingJobDefinition Source # 
Instance details

Defined in Amazonka.SageMaker.Types.HyperParameterTrainingJobDefinition

Generic HyperParameterTrainingJobDefinition Source # 
Instance details

Defined in Amazonka.SageMaker.Types.HyperParameterTrainingJobDefinition

Read HyperParameterTrainingJobDefinition Source # 
Instance details

Defined in Amazonka.SageMaker.Types.HyperParameterTrainingJobDefinition

Show HyperParameterTrainingJobDefinition Source # 
Instance details

Defined in Amazonka.SageMaker.Types.HyperParameterTrainingJobDefinition

NFData HyperParameterTrainingJobDefinition Source # 
Instance details

Defined in Amazonka.SageMaker.Types.HyperParameterTrainingJobDefinition

Eq HyperParameterTrainingJobDefinition Source # 
Instance details

Defined in Amazonka.SageMaker.Types.HyperParameterTrainingJobDefinition

Hashable HyperParameterTrainingJobDefinition Source # 
Instance details

Defined in Amazonka.SageMaker.Types.HyperParameterTrainingJobDefinition

type Rep HyperParameterTrainingJobDefinition Source # 
Instance details

Defined in Amazonka.SageMaker.Types.HyperParameterTrainingJobDefinition

type Rep HyperParameterTrainingJobDefinition = D1 ('MetaData "HyperParameterTrainingJobDefinition" "Amazonka.SageMaker.Types.HyperParameterTrainingJobDefinition" "amazonka-sagemaker-2.0-9SyrKZ4KqhsL1qX9u3ILA3" 'False) (C1 ('MetaCons "HyperParameterTrainingJobDefinition'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "checkpointConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CheckpointConfig)) :*: S1 ('MetaSel ('Just "definitionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "enableInterContainerTrafficEncryption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "enableManagedSpotTraining") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "enableNetworkIsolation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "hyperParameterRanges") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ParameterRanges))) :*: (S1 ('MetaSel ('Just "hyperParameterTuningResourceConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe HyperParameterTuningResourceConfig)) :*: S1 ('MetaSel ('Just "inputDataConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Channel)))))) :*: (((S1 ('MetaSel ('Just "resourceConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResourceConfig)) :*: S1 ('MetaSel ('Just "retryStrategy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RetryStrategy))) :*: (S1 ('MetaSel ('Just "staticHyperParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "tuningObjective") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe HyperParameterTuningJobObjective)))) :*: ((S1 ('MetaSel ('Just "vpcConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VpcConfig)) :*: S1 ('MetaSel ('Just "algorithmSpecification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 HyperParameterAlgorithmSpecification)) :*: (S1 ('MetaSel ('Just "roleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "outputDataConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 OutputDataConfig) :*: S1 ('MetaSel ('Just "stoppingCondition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 StoppingCondition)))))))

newHyperParameterTrainingJobDefinition Source #

Create a value of HyperParameterTrainingJobDefinition with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:checkpointConfig:HyperParameterTrainingJobDefinition', hyperParameterTrainingJobDefinition_checkpointConfig - Undocumented member.

$sel:definitionName:HyperParameterTrainingJobDefinition', hyperParameterTrainingJobDefinition_definitionName - The job definition name.

$sel:enableInterContainerTrafficEncryption:HyperParameterTrainingJobDefinition', hyperParameterTrainingJobDefinition_enableInterContainerTrafficEncryption - To encrypt all communications between ML compute instances in distributed training, choose True. Encryption provides greater security for distributed training, but training might take longer. How long it takes depends on the amount of communication between compute instances, especially if you use a deep learning algorithm in distributed training.

$sel:enableManagedSpotTraining:HyperParameterTrainingJobDefinition', hyperParameterTrainingJobDefinition_enableManagedSpotTraining - A Boolean indicating whether managed spot training is enabled (True) or not (False).

$sel:enableNetworkIsolation:HyperParameterTrainingJobDefinition', hyperParameterTrainingJobDefinition_enableNetworkIsolation - Isolates the training container. No inbound or outbound network calls can be made, except for calls between peers within a training cluster for distributed training. If network isolation is used for training jobs that are configured to use a VPC, SageMaker downloads and uploads customer data and model artifacts through the specified VPC, but the training container does not have network access.

$sel:hyperParameterRanges:HyperParameterTrainingJobDefinition', hyperParameterTrainingJobDefinition_hyperParameterRanges - Undocumented member.

$sel:hyperParameterTuningResourceConfig:HyperParameterTrainingJobDefinition', hyperParameterTrainingJobDefinition_hyperParameterTuningResourceConfig - The configuration for the hyperparameter tuning resources, including the compute instances and storage volumes, used for training jobs launched by the tuning job. By default, storage volumes hold model artifacts and incremental states. Choose File for TrainingInputMode in the AlgorithmSpecification parameter to additionally store training data in the storage volume (optional).

$sel:inputDataConfig:HyperParameterTrainingJobDefinition', hyperParameterTrainingJobDefinition_inputDataConfig - An array of Channel objects that specify the input for the training jobs that the tuning job launches.

$sel:resourceConfig:HyperParameterTrainingJobDefinition', hyperParameterTrainingJobDefinition_resourceConfig - The resources, including the compute instances and storage volumes, to use for the training jobs that the tuning job launches.

Storage volumes store model artifacts and incremental states. Training algorithms might also use storage volumes for scratch space. If you want SageMaker to use the storage volume to store the training data, choose File as the TrainingInputMode in the algorithm specification. For distributed training algorithms, specify an instance count greater than 1.

If you want to use hyperparameter optimization with instance type flexibility, use HyperParameterTuningResourceConfig instead.

$sel:retryStrategy:HyperParameterTrainingJobDefinition', hyperParameterTrainingJobDefinition_retryStrategy - The number of times to retry the job when the job fails due to an InternalServerError.

$sel:staticHyperParameters:HyperParameterTrainingJobDefinition', hyperParameterTrainingJobDefinition_staticHyperParameters - Specifies the values of hyperparameters that do not change for the tuning job.

$sel:tuningObjective:HyperParameterTrainingJobDefinition', hyperParameterTrainingJobDefinition_tuningObjective - Undocumented member.

$sel:vpcConfig:HyperParameterTrainingJobDefinition', hyperParameterTrainingJobDefinition_vpcConfig - The VpcConfig object that specifies the VPC that you want the training jobs that this hyperparameter tuning job launches to connect to. Control access to and from your training container by configuring the VPC. For more information, see Protect Training Jobs by Using an Amazon Virtual Private Cloud.

$sel:algorithmSpecification:HyperParameterTrainingJobDefinition', hyperParameterTrainingJobDefinition_algorithmSpecification - The HyperParameterAlgorithmSpecification object that specifies the resource algorithm to use for the training jobs that the tuning job launches.

$sel:roleArn:HyperParameterTrainingJobDefinition', hyperParameterTrainingJobDefinition_roleArn - The Amazon Resource Name (ARN) of the IAM role associated with the training jobs that the tuning job launches.

$sel:outputDataConfig:HyperParameterTrainingJobDefinition', hyperParameterTrainingJobDefinition_outputDataConfig - Specifies the path to the Amazon S3 bucket where you store model artifacts from the training jobs that the tuning job launches.

$sel:stoppingCondition:HyperParameterTrainingJobDefinition', hyperParameterTrainingJobDefinition_stoppingCondition - Specifies a limit to how long a model hyperparameter training job can run. It also specifies how long a managed spot training job has to complete. When the job reaches the time limit, SageMaker ends the training job. Use this API to cap model training costs.

hyperParameterTrainingJobDefinition_enableInterContainerTrafficEncryption :: Lens' HyperParameterTrainingJobDefinition (Maybe Bool) Source #

To encrypt all communications between ML compute instances in distributed training, choose True. Encryption provides greater security for distributed training, but training might take longer. How long it takes depends on the amount of communication between compute instances, especially if you use a deep learning algorithm in distributed training.

hyperParameterTrainingJobDefinition_enableManagedSpotTraining :: Lens' HyperParameterTrainingJobDefinition (Maybe Bool) Source #

A Boolean indicating whether managed spot training is enabled (True) or not (False).

hyperParameterTrainingJobDefinition_enableNetworkIsolation :: Lens' HyperParameterTrainingJobDefinition (Maybe Bool) Source #

Isolates the training container. No inbound or outbound network calls can be made, except for calls between peers within a training cluster for distributed training. If network isolation is used for training jobs that are configured to use a VPC, SageMaker downloads and uploads customer data and model artifacts through the specified VPC, but the training container does not have network access.

hyperParameterTrainingJobDefinition_hyperParameterTuningResourceConfig :: Lens' HyperParameterTrainingJobDefinition (Maybe HyperParameterTuningResourceConfig) Source #

The configuration for the hyperparameter tuning resources, including the compute instances and storage volumes, used for training jobs launched by the tuning job. By default, storage volumes hold model artifacts and incremental states. Choose File for TrainingInputMode in the AlgorithmSpecification parameter to additionally store training data in the storage volume (optional).

hyperParameterTrainingJobDefinition_inputDataConfig :: Lens' HyperParameterTrainingJobDefinition (Maybe (NonEmpty Channel)) Source #

An array of Channel objects that specify the input for the training jobs that the tuning job launches.

hyperParameterTrainingJobDefinition_resourceConfig :: Lens' HyperParameterTrainingJobDefinition (Maybe ResourceConfig) Source #

The resources, including the compute instances and storage volumes, to use for the training jobs that the tuning job launches.

Storage volumes store model artifacts and incremental states. Training algorithms might also use storage volumes for scratch space. If you want SageMaker to use the storage volume to store the training data, choose File as the TrainingInputMode in the algorithm specification. For distributed training algorithms, specify an instance count greater than 1.

If you want to use hyperparameter optimization with instance type flexibility, use HyperParameterTuningResourceConfig instead.

hyperParameterTrainingJobDefinition_retryStrategy :: Lens' HyperParameterTrainingJobDefinition (Maybe RetryStrategy) Source #

The number of times to retry the job when the job fails due to an InternalServerError.

hyperParameterTrainingJobDefinition_staticHyperParameters :: Lens' HyperParameterTrainingJobDefinition (Maybe (HashMap Text Text)) Source #

Specifies the values of hyperparameters that do not change for the tuning job.

hyperParameterTrainingJobDefinition_vpcConfig :: Lens' HyperParameterTrainingJobDefinition (Maybe VpcConfig) Source #

The VpcConfig object that specifies the VPC that you want the training jobs that this hyperparameter tuning job launches to connect to. Control access to and from your training container by configuring the VPC. For more information, see Protect Training Jobs by Using an Amazon Virtual Private Cloud.

hyperParameterTrainingJobDefinition_algorithmSpecification :: Lens' HyperParameterTrainingJobDefinition HyperParameterAlgorithmSpecification Source #

The HyperParameterAlgorithmSpecification object that specifies the resource algorithm to use for the training jobs that the tuning job launches.

hyperParameterTrainingJobDefinition_roleArn :: Lens' HyperParameterTrainingJobDefinition Text Source #

The Amazon Resource Name (ARN) of the IAM role associated with the training jobs that the tuning job launches.

hyperParameterTrainingJobDefinition_outputDataConfig :: Lens' HyperParameterTrainingJobDefinition OutputDataConfig Source #

Specifies the path to the Amazon S3 bucket where you store model artifacts from the training jobs that the tuning job launches.

hyperParameterTrainingJobDefinition_stoppingCondition :: Lens' HyperParameterTrainingJobDefinition StoppingCondition Source #

Specifies a limit to how long a model hyperparameter training job can run. It also specifies how long a managed spot training job has to complete. When the job reaches the time limit, SageMaker ends the training job. Use this API to cap model training costs.