当试图为sklearn估计器的批处理转换过程定义转换器时,我得到以下错误: TypeError:init()获得参数‘entry_point’的多个值
以下是我遵循的步骤:
步骤1:
from sagemaker.sklearn.estimator import SKLearn
script_path = 'transformer.py'
sklearn_preprocessor = SKLearn(
entry_point=script_path,
role=role,
train_instance_type="ml.c4.xlarge",
sagemaker_session=sagemaker_session)步骤2:
sklearn_preprocessor.fit({'train': "s3://training-data/train.csv"})培训是成功的。
步骤3:
transformer = sklearn_preprocessor.transformer(
instance_count=1,
instance_type='ml.m4.xlarge',
assemble_with = 'Line',
output_path='s3://training-data/transformed.csv',
accept = 'text/csv')Step3错误:
TypeError: __init__() got multiple values for argument 'entry_point'发布于 2019-09-05 16:41:38
该问题已报告给的Github存储库https://github.com/aws/sagemaker-python-sdk/issues/974。
看起来这个问题已经解决了,PR https://github.com/aws/sagemaker-python-sdk/pull/978看了一下变更量,修复版在v1.36.3中发布了。将SDK更新到更高版本应该可以解决这个问题。
https://stackoverflow.com/questions/57772626
复制相似问题