简体   繁体   English

AWS Sagemaker - PCA Model 未部署

[英]AWS Sagemaker - PCA Model doesn't deploy

I've created a PCA Model in SageMaker..something along those lines:我在 SageMaker 中创建了一个 PCA Model .. 沿着这些思路:

pca = PCA(role=role,
             train_instance_count=1,
             train_instance_type='ml.c4.xlarge',
             output_path=output_path, 
             num_components=N_COMPONENTS, 
             sagemaker_session=session)

Then I've fitted it against my data然后我将它与我的数据相匹配

pca.fit(data)

And finally I would like to deploy the model, but when I run:最后我想部署 model,但是当我运行时:

pca_predictor = pca.deploy(initial_instance_count=1, 
                              instance_type='ml.t2.medium')

I see this error message:我看到此错误消息:

TypeError: create_model() got an unexpected keyword argument 'model_kms_key' TypeError:create_model() 得到了一个意外的关键字参数“model_kms_key”

I have no idea how to understand that error and what it refers to...any pointers?我不知道如何理解该错误以及它指的是什么......任何指针?

Upgrade sagemaker, I was getting this error with version 1.42.6.升级 sagemaker,我在 1.42.6 版中遇到此错误。 It's fixed in 1.42.9它已在 1.42.9 中修复

Run the command:运行命令:

    ! pip install --upgrade sagemaker

If using a jupyter notebook instance you may need to restart the kernel to pick up the change.如果使用 jupyter 笔记本实例,您可能需要重新启动 kernel 以获取更改。

To check the current sagemaker version use:要检查当前的 sagemaker 版本,请使用:

    print(sagemaker.__version__)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM