Struct aws_sdk_personalize::client::fluent_builders::CreateSolution [−][src]
pub struct CreateSolution<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }Expand description
Fluent builder constructing a request to CreateSolution.
Creates the configuration for training a model. A trained model is known as
a solution. After the configuration is created, you train the model (create a solution)
by calling the CreateSolutionVersion operation. Every time you call
CreateSolutionVersion, a new version of the solution is created.
After creating a solution version, you check its accuracy by calling GetSolutionMetrics. When you are satisfied with the version, you deploy it using CreateCampaign. The campaign provides recommendations to a client through the GetRecommendations API.
To train a model, Amazon Personalize requires training data and a recipe. The training data
comes from the dataset group that you provide in the request. A recipe specifies
the training algorithm and a feature transformation. You can specify one of the predefined
recipes provided by Amazon Personalize. Alternatively, you can specify
performAutoML and Amazon Personalize will analyze your data and select the
optimum USER_PERSONALIZATION recipe for you.
Amazon Personalize doesn't support configuring the hpoObjective
for solution hyperparameter optimization at this time.
Status
A solution can be in one of the following states:
-
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
-
DELETE PENDING > DELETE IN_PROGRESS
To get the status of the solution, call DescribeSolution. Wait
until the status shows as ACTIVE before calling CreateSolutionVersion.
Related APIs
Implementations
impl<C, M, R> CreateSolution<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateSolution<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateSolutionOutput, SdkError<CreateSolutionError>> where
R::Policy: SmithyRetryPolicy<CreateSolutionInputOperationOutputAlias, CreateSolutionOutput, CreateSolutionError, CreateSolutionInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateSolutionOutput, SdkError<CreateSolutionError>> where
R::Policy: SmithyRetryPolicy<CreateSolutionInputOperationOutputAlias, CreateSolutionOutput, CreateSolutionError, CreateSolutionInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
Whether to perform hyperparameter optimization (HPO) on the specified or selected recipe.
The default is false.
When performing AutoML, this parameter is always true and you
should not set it to false.
Whether to perform hyperparameter optimization (HPO) on the specified or selected recipe.
The default is false.
When performing AutoML, this parameter is always true and you
should not set it to false.
Whether to perform automated machine learning (AutoML). The default is false.
For this case, you must specify recipeArn.
When set to true, Amazon Personalize analyzes your training data and selects
the optimal USER_PERSONALIZATION recipe and hyperparameters. In this case, you must omit
recipeArn. Amazon Personalize determines the optimal recipe by running tests with
different values for the hyperparameters.
AutoML lengthens the training process as compared to selecting a specific recipe.
Whether to perform automated machine learning (AutoML). The default is false.
For this case, you must specify recipeArn.
When set to true, Amazon Personalize analyzes your training data and selects
the optimal USER_PERSONALIZATION recipe and hyperparameters. In this case, you must omit
recipeArn. Amazon Personalize determines the optimal recipe by running tests with
different values for the hyperparameters.
AutoML lengthens the training process as compared to selecting a specific recipe.
The ARN of the recipe to use for model training. Only specified when
performAutoML is false.
The ARN of the recipe to use for model training. Only specified when
performAutoML is false.
The Amazon Resource Name (ARN) of the dataset group that provides the training data.
The Amazon Resource Name (ARN) of the dataset group that provides the training data.
When your have multiple event types (using an EVENT_TYPE schema field),
this parameter specifies which event type (for example, 'click' or 'like') is used for
training the model.
If you do not provide an eventType, Amazon Personalize will use all interactions for training with
equal weight regardless of type.
When your have multiple event types (using an EVENT_TYPE schema field),
this parameter specifies which event type (for example, 'click' or 'like') is used for
training the model.
If you do not provide an eventType, Amazon Personalize will use all interactions for training with
equal weight regardless of type.
The configuration to use with the solution. When performAutoML is set to
true, Amazon Personalize only evaluates the autoMLConfig section
of the solution configuration.
Amazon Personalize doesn't support configuring the hpoObjective
at this time.
The configuration to use with the solution. When performAutoML is set to
true, Amazon Personalize only evaluates the autoMLConfig section
of the solution configuration.
Amazon Personalize doesn't support configuring the hpoObjective
at this time.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateSolution<C, M, R>
impl<C, M, R> Send for CreateSolution<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateSolution<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateSolution<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateSolution<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more