Class Solution
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Solution.Builder,Solution>
By default, all new solutions use automatic training. With automatic training, you incur training costs while your solution is active. To avoid unnecessary costs, when you are finished you can update the solution to turn off automatic training. For information about training costs, see Amazon Personalize pricing.
An object that provides information about a solution. A solution includes the custom recipe, customized parameters, and trained models (Solution Versions) that Amazon Personalize uses to generate recommendations.
After you create a solution, you can’t change its configuration. If you need to make changes, you can clone the solution with the Amazon Personalize console or create a new one.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal AutoMLResultWhenperformAutoMLis true, specifies the best recipe found.static Solution.Builderbuilder()final InstantThe creation date and time (in Unix time) of the solution.final StringThe Amazon Resource Name (ARN) of the dataset group that provides the training data.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringThe event type (for example, 'click' or 'like') that is used for training the model.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final InstantThe date and time (in Unix time) that the solution was last updated.final SolutionUpdateSummaryProvides a summary of the latest updates to the solution.final SolutionVersionSummaryDescribes the latest version of the solution, including the status and the ARN.final Stringname()The name of the solution.final Booleanfinal BooleanSpecifies whether the solution automatically creates solution versions.final BooleanWhether to perform hyperparameter optimization (HPO) on the chosen recipe.final StringThe ARN of the recipe used to create the solution.static Class<? extends Solution.Builder> final StringThe ARN of the solution.final SolutionConfigDescribes the configuration properties for the solution.final Stringstatus()The status of the solution.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
name
-
solutionArn
-
performHPO
Whether to perform hyperparameter optimization (HPO) on the chosen recipe. The default is
false.- Returns:
- Whether to perform hyperparameter optimization (HPO) on the chosen recipe. The default is
false.
-
performAutoML
We don't recommend enabling automated machine learning. Instead, match your use case to the available Amazon Personalize recipes. For more information, see Determining your use case.
When true, Amazon Personalize performs a search for the best USER_PERSONALIZATION recipe from the list specified in the solution configuration (
recipeArnmust not be specified). When false (the default), Amazon Personalize usesrecipeArnfor training.- Returns:
We don't recommend enabling automated machine learning. Instead, match your use case to the available Amazon Personalize recipes. For more information, see Determining your use case.
When true, Amazon Personalize performs a search for the best USER_PERSONALIZATION recipe from the list specified in the solution configuration (
recipeArnmust not be specified). When false (the default), Amazon Personalize usesrecipeArnfor training.
-
performAutoTraining
Specifies whether the solution automatically creates solution versions. The default is
Trueand the solution automatically creates new solution versions every 7 days.For more information about auto training, see Creating and configuring a solution.
- Returns:
- Specifies whether the solution automatically creates solution versions. The default is
Trueand the solution automatically creates new solution versions every 7 days.For more information about auto training, see Creating and configuring a solution.
-
recipeArn
The ARN of the recipe used to create the solution. This is required when
performAutoMLis false.- Returns:
- The ARN of the recipe used to create the solution. This is required when
performAutoMLis false.
-
datasetGroupArn
The Amazon Resource Name (ARN) of the dataset group that provides the training data.
- Returns:
- The Amazon Resource Name (ARN) of the dataset group that provides the training data.
-
eventType
The event type (for example, 'click' or 'like') that is used for training the model. If no
eventTypeis provided, Amazon Personalize uses all interactions for training with equal weight regardless of type.- Returns:
- The event type (for example, 'click' or 'like') that is used for training the model. If no
eventTypeis provided, Amazon Personalize uses all interactions for training with equal weight regardless of type.
-
solutionConfig
Describes the configuration properties for the solution.
- Returns:
- Describes the configuration properties for the solution.
-
autoMLResult
When
performAutoMLis true, specifies the best recipe found.- Returns:
- When
performAutoMLis true, specifies the best recipe found.
-
status
The status of the solution.
A solution can be in one of the following states:
-
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
-
DELETE PENDING > DELETE IN_PROGRESS
- Returns:
- The status of the solution.
A solution can be in one of the following states:
-
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
-
DELETE PENDING > DELETE IN_PROGRESS
-
-
-
creationDateTime
The creation date and time (in Unix time) of the solution.
- Returns:
- The creation date and time (in Unix time) of the solution.
-
lastUpdatedDateTime
The date and time (in Unix time) that the solution was last updated.
- Returns:
- The date and time (in Unix time) that the solution was last updated.
-
latestSolutionVersion
Describes the latest version of the solution, including the status and the ARN.
- Returns:
- Describes the latest version of the solution, including the status and the ARN.
-
latestSolutionUpdate
Provides a summary of the latest updates to the solution.
- Returns:
- Provides a summary of the latest updates to the solution.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Solution.Builder,Solution> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-