Interface CfnSolutionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnSolutionProps.Jsii$Proxy
CfnSolution.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.personalize.*;
Object autoMlConfig;
Object hpoConfig;
CfnSolutionProps cfnSolutionProps = CfnSolutionProps.builder()
.datasetGroupArn("datasetGroupArn")
.name("name")
// the properties below are optional
.eventType("eventType")
.performAutoMl(false)
.performHpo(false)
.recipeArn("recipeArn")
.solutionConfig(SolutionConfigProperty.builder()
.algorithmHyperParameters(Map.of(
"algorithmHyperParametersKey", "algorithmHyperParameters"))
.autoMlConfig(autoMlConfig)
.eventValueThreshold("eventValueThreshold")
.featureTransformationParameters(Map.of(
"featureTransformationParametersKey", "featureTransformationParameters"))
.hpoConfig(hpoConfig)
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnSolutionPropsstatic final classAn implementation forCfnSolutionProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnSolutionProps.Builderbuilder()The Amazon Resource Name (ARN) of the dataset group that provides the training data.default StringThe event type (for example, 'click' or 'like') that is used for training the model.getName()The name of the solution.default Objectdefault ObjectWhether to perform hyperparameter optimization (HPO) on the chosen recipe.default StringThe ARN of the recipe used to create the solution.default ObjectDescribes the configuration properties for the solution.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDatasetGroupArn
The Amazon Resource Name (ARN) of the dataset group that provides the training data.- See Also:
-
getName
The name of the solution.- See Also:
-
getEventType
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.- See Also:
-
getPerformAutoMl
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 union: either
BooleanorIResolvable- See Also:
-
getPerformHpo
Whether to perform hyperparameter optimization (HPO) on the chosen recipe.The default is
false.Returns union: either
BooleanorIResolvable- See Also:
-
getRecipeArn
The ARN of the recipe used to create the solution.This is required when
performAutoMLis false.- See Also:
-
getSolutionConfig
Describes the configuration properties for the solution.Returns union: either
IResolvableorCfnSolution.SolutionConfigProperty- See Also:
-
builder
- Returns:
- a
CfnSolutionProps.BuilderofCfnSolutionProps
-