Skip to content

GetMLModelOutput

Source code in docs_src/capo_machine_learning/types/get_ml_model_output.py
class GetMLModelOutput(TypedDict, closed=True):
    ml_model_id: NotRequired["capo_machine_learning.types.entity_id.EntityId"]
    """<p>The MLModel ID, which is same as the <code>MLModelId</code> in the request.</p>"""
    training_data_source_id: NotRequired[
        "capo_machine_learning.types.entity_id.EntityId"
    ]
    """<p>The ID of the training <code>DataSource</code>.</p>"""
    created_by_iam_user: NotRequired[
        "capo_machine_learning.types.aws_user_arn.AwsUserArn"
    ]
    """<p>The AWS user account from which the <code>MLModel</code> was created. The account type can be either an AWS root account or an AWS Identity and Access Management (IAM) user account.</p>"""
    created_at: NotRequired["capo_machine_learning.types.epoch_time.EpochTime"]
    """<p>The time that the <code>MLModel</code> was created. The time is expressed in epoch time.</p>"""
    last_updated_at: NotRequired["capo_machine_learning.types.epoch_time.EpochTime"]
    """<p>The time of the most recent edit to the <code>MLModel</code>. The time is expressed in epoch time.</p>"""
    name: NotRequired["capo_machine_learning.types.ml_model_name.MLModelName"]
    """<p>A user-supplied name or description of the <code>MLModel</code>.</p>"""
    status: NotRequired["capo_machine_learning.types.entity_status.EntityStatus"]
    """<p>The current status of the <code>MLModel</code>. This element can have one of the following values:</p> <ul> <li> <p> <code>PENDING</code> - Amazon Machine Learning (Amazon ML) submitted a request to describe a <code>MLModel</code>.</p> </li> <li> <p> <code>INPROGRESS</code> - The request is processing.</p> </li> <li> <p> <code>FAILED</code> - The request did not run to completion. The ML model isn't usable.</p> </li> <li> <p> <code>COMPLETED</code> - The request completed successfully.</p> </li> <li> <p> <code>DELETED</code> - The <code>MLModel</code> is marked as deleted. It isn't usable.</p> </li> </ul>"""
    size_in_bytes: NotRequired["capo_machine_learning.types.long_type.LongType"]
    endpoint_info: NotRequired[
        "capo_machine_learning.types.realtime_endpoint_info.RealtimeEndpointInfo"
    ]
    """<p>The current endpoint of the <code>MLModel</code> </p>"""
    training_parameters: NotRequired[
        "capo_machine_learning.types.training_parameters.TrainingParameters"
    ]
    """<p>A list of the training parameters in the <code>MLModel</code>. The list is implemented as a map of key-value pairs.</p> <p>The following is the current set of training parameters:</p> <ul> <li> <p> <code>sgd.maxMLModelSizeInBytes</code> - The maximum allowed size of the model. Depending on the input data, the size of the model might affect its performance.</p> <p> The value is an integer that ranges from <code>100000</code> to <code>2147483648</code>. The default value is <code>33554432</code>.</p> </li> <li> <p> <code>sgd.maxPasses</code> - The number of times that the training process traverses the observations to build the <code>MLModel</code>. The value is an integer that ranges from <code>1</code> to <code>10000</code>. The default value is <code>10</code>.</p> </li> <li> <p> <code>sgd.shuffleType</code> - Whether Amazon ML shuffles the training data. Shuffling data improves a model's ability to find the optimal solution for a variety of data types. The valid values are <code>auto</code> and <code>none</code>. The default value is <code>none</code>. We strongly recommend that you shuffle your data.</p> </li> <li> <p> <code>sgd.l1RegularizationAmount</code> - The coefficient regularization L1 norm. It controls overfitting the data by penalizing large coefficients. This tends to drive coefficients to zero, resulting in a sparse feature set. If you use this parameter, start by specifying a small value, such as <code>1.0E-08</code>.</p> <p>The value is a double that ranges from <code>0</code> to <code>MAX_DOUBLE</code>. The default is to not use L1 normalization. This parameter can't be used when <code>L2</code> is specified. Use this parameter sparingly.</p> </li> <li> <p> <code>sgd.l2RegularizationAmount</code> - The coefficient regularization L2 norm. It controls overfitting the data by penalizing large coefficients. This tends to drive coefficients to small, nonzero values. If you use this parameter, start by specifying a small value, such as <code>1.0E-08</code>.</p> <p>The value is a double that ranges from <code>0</code> to <code>MAX_DOUBLE</code>. The default is to not use L2 normalization. This parameter can't be used when <code>L1</code> is specified. Use this parameter sparingly.</p> </li> </ul>"""
    input_data_location_s3: NotRequired["capo_machine_learning.types.s3_url.S3Url"]
    """<p>The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).</p>"""
    ml_model_type: NotRequired["capo_machine_learning.types.ml_model_type.MLModelType"]
    """<p>Identifies the <code>MLModel</code> category. The following are the available types: </p> <ul> <li> <p>REGRESSION -- Produces a numeric result. For example, "What price should a house be listed at?"</p> </li> <li> <p>BINARY -- Produces one of two possible results. For example, "Is this an e-commerce website?"</p> </li> <li> <p>MULTICLASS -- Produces one of several possible results. For example, "Is this a HIGH, LOW or MEDIUM risk trade?"</p> </li> </ul>"""
    score_threshold: NotRequired[
        "capo_machine_learning.types.score_threshold.ScoreThreshold"
    ]
    """<p>The scoring threshold is used in binary classification <code>MLModel</code> models. It marks the boundary between a positive prediction and a negative prediction.</p> <p>Output values greater than or equal to the threshold receive a positive result from the MLModel, such as <code>true</code>. Output values less than the threshold receive a negative response from the MLModel, such as <code>false</code>.</p>"""
    score_threshold_last_updated_at: NotRequired[
        "capo_machine_learning.types.epoch_time.EpochTime"
    ]
    """<p>The time of the most recent edit to the <code>ScoreThreshold</code>. The time is expressed in epoch time.</p>"""
    log_uri: NotRequired["capo_machine_learning.types.presigned_s3_url.PresignedS3Url"]
    """<p>A link to the file that contains logs of the <code>CreateMLModel</code> operation.</p>"""
    message: NotRequired["capo_machine_learning.types.message.Message"]
    """<p>A description of the most recent details about accessing the <code>MLModel</code>.</p>"""
    compute_time: NotRequired["capo_machine_learning.types.long_type.LongType"]
    """<p>The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the <code>MLModel</code>, normalized and scaled on computation resources. <code>ComputeTime</code> is only available if the <code>MLModel</code> is in the <code>COMPLETED</code> state.</p>"""
    finished_at: NotRequired["capo_machine_learning.types.epoch_time.EpochTime"]
    """<p>The epoch time when Amazon Machine Learning marked the <code>MLModel</code> as <code>COMPLETED</code> or <code>FAILED</code>. <code>FinishedAt</code> is only available when the <code>MLModel</code> is in the <code>COMPLETED</code> or <code>FAILED</code> state.</p>"""
    started_at: NotRequired["capo_machine_learning.types.epoch_time.EpochTime"]
    """<p>The epoch time when Amazon Machine Learning marked the <code>MLModel</code> as <code>INPROGRESS</code>. <code>StartedAt</code> isn't available if the <code>MLModel</code> is in the <code>PENDING</code> state.</p>"""
    recipe: NotRequired["capo_machine_learning.types.recipe.Recipe"]
    """<p>The recipe to use when training the <code>MLModel</code>. The <code>Recipe</code> provides detailed information about the observation data to use during training, and manipulations to perform on the observation data during training.</p> <p> <b>Note:</b> This parameter is provided as part of the verbose format.</p>"""
    schema: NotRequired["capo_machine_learning.types.data_schema.DataSchema"]
    """<p>The schema used by all of the data files referenced by the <code>DataSource</code>.</p> <p> <b>Note:</b> This parameter is provided as part of the verbose format.</p>"""

compute_time instance-attribute

compute_time: NotRequired[LongType]

The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the MLModel, normalized and scaled on computation resources. ComputeTime is only available if the MLModel is in the COMPLETED state.

created_at instance-attribute

created_at: NotRequired[EpochTime]

The time that the MLModel was created. The time is expressed in epoch time.

created_by_iam_user instance-attribute

created_by_iam_user: NotRequired[AwsUserArn]

The AWS user account from which the MLModel was created. The account type can be either an AWS root account or an AWS Identity and Access Management (IAM) user account.

endpoint_info instance-attribute

endpoint_info: NotRequired[RealtimeEndpointInfo]

The current endpoint of the MLModel

finished_at instance-attribute

finished_at: NotRequired[EpochTime]

The epoch time when Amazon Machine Learning marked the MLModel as COMPLETED or FAILED. FinishedAt is only available when the MLModel is in the COMPLETED or FAILED state.

input_data_location_s3 instance-attribute

input_data_location_s3: NotRequired[S3Url]

The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).

last_updated_at instance-attribute

last_updated_at: NotRequired[EpochTime]

The time of the most recent edit to the MLModel. The time is expressed in epoch time.

log_uri instance-attribute

log_uri: NotRequired[PresignedS3Url]

A link to the file that contains logs of the CreateMLModel operation.

message instance-attribute

message: NotRequired[Message]

A description of the most recent details about accessing the MLModel.

ml_model_id instance-attribute

ml_model_id: NotRequired[EntityId]

The MLModel ID, which is same as the MLModelId in the request.

ml_model_type instance-attribute

ml_model_type: NotRequired[MLModelType]

Identifies the MLModel category. The following are the available types:

  • REGRESSION -- Produces a numeric result. For example, "What price should a house be listed at?"

  • BINARY -- Produces one of two possible results. For example, "Is this an e-commerce website?"

  • MULTICLASS -- Produces one of several possible results. For example, "Is this a HIGH, LOW or MEDIUM risk trade?"

name instance-attribute

name: NotRequired[MLModelName]

A user-supplied name or description of the MLModel.

recipe instance-attribute

recipe: NotRequired[Recipe]

The recipe to use when training the MLModel. The Recipe provides detailed information about the observation data to use during training, and manipulations to perform on the observation data during training.

Note: This parameter is provided as part of the verbose format.

schema instance-attribute

schema: NotRequired[DataSchema]

The schema used by all of the data files referenced by the DataSource.

Note: This parameter is provided as part of the verbose format.

score_threshold instance-attribute

score_threshold: NotRequired[ScoreThreshold]

The scoring threshold is used in binary classification MLModel models. It marks the boundary between a positive prediction and a negative prediction.

Output values greater than or equal to the threshold receive a positive result from the MLModel, such as true. Output values less than the threshold receive a negative response from the MLModel, such as false.

score_threshold_last_updated_at instance-attribute

score_threshold_last_updated_at: NotRequired[EpochTime]

The time of the most recent edit to the ScoreThreshold. The time is expressed in epoch time.

size_in_bytes instance-attribute

size_in_bytes: NotRequired[LongType]

started_at instance-attribute

started_at: NotRequired[EpochTime]

The epoch time when Amazon Machine Learning marked the MLModel as INPROGRESS. StartedAt isn't available if the MLModel is in the PENDING state.

status instance-attribute

status: NotRequired[EntityStatus]

The current status of the MLModel. This element can have one of the following values:

  • PENDING - Amazon Machine Learning (Amazon ML) submitted a request to describe a MLModel.

  • INPROGRESS - The request is processing.

  • FAILED - The request did not run to completion. The ML model isn't usable.

  • COMPLETED - The request completed successfully.

  • DELETED - The MLModel is marked as deleted. It isn't usable.

training_data_source_id instance-attribute

training_data_source_id: NotRequired[EntityId]

The ID of the training DataSource.

training_parameters instance-attribute

training_parameters: NotRequired[TrainingParameters]

A list of the training parameters in the MLModel. The list is implemented as a map of key-value pairs.

The following is the current set of training parameters:

  • sgd.maxMLModelSizeInBytes - The maximum allowed size of the model. Depending on the input data, the size of the model might affect its performance.

    The value is an integer that ranges from 100000 to 2147483648. The default value is 33554432.

  • sgd.maxPasses - The number of times that the training process traverses the observations to build the MLModel. The value is an integer that ranges from 1 to 10000. The default value is 10.

  • sgd.shuffleType - Whether Amazon ML shuffles the training data. Shuffling data improves a model's ability to find the optimal solution for a variety of data types. The valid values are auto and none. The default value is none. We strongly recommend that you shuffle your data.

  • sgd.l1RegularizationAmount - The coefficient regularization L1 norm. It controls overfitting the data by penalizing large coefficients. This tends to drive coefficients to zero, resulting in a sparse feature set. If you use this parameter, start by specifying a small value, such as 1.0E-08.

    The value is a double that ranges from 0 to MAX_DOUBLE. The default is to not use L1 normalization. This parameter can't be used when L2 is specified. Use this parameter sparingly.

  • sgd.l2RegularizationAmount - The coefficient regularization L2 norm. It controls overfitting the data by penalizing large coefficients. This tends to drive coefficients to small, nonzero values. If you use this parameter, start by specifying a small value, such as 1.0E-08.

    The value is a double that ranges from 0 to MAX_DOUBLE. The default is to not use L2 normalization. This parameter can't be used when L1 is specified. Use this parameter sparingly.