Class CfnSolutionProps
Properties for defining a CfnSolution
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Personalize
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnSolutionProps : Object, ICfnSolutionProps
Syntax (vb)
Public Class CfnSolutionProps
Inherits Object
Implements ICfnSolutionProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-personalize-solution.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Personalize;
var autoMlConfig;
var hpoConfig;
var cfnSolutionProps = new CfnSolutionProps {
DatasetGroupArn = "datasetGroupArn",
Name = "name",
// the properties below are optional
EventType = "eventType",
PerformAutoMl = false,
PerformHpo = false,
RecipeArn = "recipeArn",
SolutionConfig = new SolutionConfigProperty {
AlgorithmHyperParameters = new Dictionary<string, string> {
{ "algorithmHyperParametersKey", "algorithmHyperParameters" }
},
AutoMlConfig = autoMlConfig,
EventValueThreshold = "eventValueThreshold",
FeatureTransformationParameters = new Dictionary<string, string> {
{ "featureTransformationParametersKey", "featureTransformationParameters" }
},
HpoConfig = hpoConfig
}
};
Synopsis
Constructors
CfnSolutionProps() |
Properties
DatasetGroupArn | 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. |
Name | The name of the solution. |
PerformAutoMl | We don't recommend enabling automated machine learning. |
PerformHpo | Whether to perform hyperparameter optimization (HPO) on the chosen recipe. |
RecipeArn | The ARN of the recipe used to create the solution. |
SolutionConfig | Describes the configuration properties for the solution. |
Constructors
CfnSolutionProps()
public CfnSolutionProps()
Properties
DatasetGroupArn
The Amazon Resource Name (ARN) of the dataset group that provides the training data.
public string DatasetGroupArn { get; set; }
Property Value
System.String
Remarks
EventType
The event type (for example, 'click' or 'like') that is used for training the model.
public string EventType { get; set; }
Property Value
System.String
Remarks
If no eventType
is provided, Amazon Personalize uses all interactions for training with equal weight regardless of type.
Name
The name of the solution.
public string Name { get; set; }
Property Value
System.String
Remarks
PerformAutoMl
We don't recommend enabling automated machine learning.
public object PerformAutoMl { get; set; }
Property Value
System.Object
Remarks
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 ( recipeArn
must not be specified). When false (the default), Amazon Personalize uses recipeArn
for training.
PerformHpo
Whether to perform hyperparameter optimization (HPO) on the chosen recipe.
public object PerformHpo { get; set; }
Property Value
System.Object
Remarks
RecipeArn
The ARN of the recipe used to create the solution.
public string RecipeArn { get; set; }
Property Value
System.String
Remarks
This is required when performAutoML
is false.
SolutionConfig
Describes the configuration properties for the solution.
public object SolutionConfig { get; set; }
Property Value
System.Object