根据文档(https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-personalize-2018-05-22.html#createsolution),当您创建解决方案时,您必须algorithmHyperParameters
提供字符串数组,所以我做了:
'solutionConfig' => [
'algorithmHyperParameters' => [
'min_copurchase_count',
'exponentiation_parameter',
],
...
],
但脚本失败并出现错误:
Fatal error: Uncaught InvalidArgumentException: Found 1 error while validating the input provided for the CreateSolution operation:
[solutionConfig][algorithmHyperParameters] must be an associative array. Found array(2) in /var/www/vendor/aws/aws-sdk-php/src/Api/Validator.php:65
这种情况下怎么algorithmHyperParameters
可能an associative array
?我试图将它作为关联数组,但我没有发现任何有效的。
有人可以帮助解决这个问题吗?提前致谢。