Creates the configuration for training a model
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
create_solution_version
operation. Every time you call
create_solution_version
, a new
version of the solution is created.
After creating a solution version, you check its accuracy by calling
get_solution_metrics
. When you are
satisfied with the version, you deploy it using
create_campaign
. 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.
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
describe_solution
. Wait until the
status shows as ACTIVE before calling
create_solution_version
.
Related APIs
personalize_create_solution(name, performHPO, performAutoML, recipeArn, datasetGroupArn, eventType, solutionConfig)
name |
[required] The name for the solution. |
performHPO |
Whether to perform hyperparameter optimization (HPO) on the specified or
selected recipe. The default is When performing AutoML, this parameter is always |
performAutoML |
Whether to perform automated machine learning (AutoML). The default is
When set to |
recipeArn |
The ARN of the recipe to use for model training. Only specified when
|
datasetGroupArn |
[required] The Amazon Resource Name (ARN) of the dataset group that provides the training data. |
eventType |
When your have multiple event types (using an |
solutionConfig |
The configuration to use with the solution. When |
A list with the following syntax:
list( solutionArn = "string" )
svc$create_solution( name = "string", performHPO = TRUE|FALSE, performAutoML = TRUE|FALSE, recipeArn = "string", datasetGroupArn = "string", eventType = "string", solutionConfig = list( eventValueThreshold = "string", hpoConfig = list( hpoObjective = list( type = "string", metricName = "string", metricRegex = "string" ), hpoResourceConfig = list( maxNumberOfTrainingJobs = "string", maxParallelTrainingJobs = "string" ), algorithmHyperParameterRanges = list( integerHyperParameterRanges = list( list( name = "string", minValue = 123, maxValue = 123 ) ), continuousHyperParameterRanges = list( list( name = "string", minValue = 123.0, maxValue = 123.0 ) ), categoricalHyperParameterRanges = list( list( name = "string", values = list( "string" ) ) ) ) ), algorithmHyperParameters = list( "string" ), featureTransformationParameters = list( "string" ), autoMLConfig = list( metricName = "string", recipeList = list( "string" ) ) ) )
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.