'How to use optimizationObjective using AWS Personalized Python SDK?

for optimizationObjective I am using following code in solutionConfig:

"optimizationObjective": {
            "itemAttribute": "ITEM_WEIGHT",
            "objectiveSensitivity": "HIGH"
        }

But it is showing me the following error:

[Parameter validation failed: Unknown parameter in solutionConfig: "optimizationObjective", must be one of: eventValueThreshold, hpoConfig, algorithmHyperParameters, featureTransformationParameters, autoMLConfig]

The same is being done through the AWS console but gives me an error in SDK.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source