我尝试使用下面给出的示例代码在我的机器上本地运行Hyperparameter调优作业。
tuner = HyperparameterTuner(estimator,
objective_metric_name,
hyperparameter_ranges,
metric_definitions,
max_jobs=4,
max_parallel_jobs=2,
objective_type=objective_type,
base_tuning_job_name="hpo-tuning-demo"
)
tuner.fit(inputs=channels)这将产生一个错误:AttributeError: 'LocalSagemakerClient' object has no attribute 'create_hyper_parameter_tuning_job'。按照其他一些帖子中的建议更新SageMaker和boto3并没有什么帮助。
这是否意味着本地不支持超参数调优,或者如果我遗漏了什么?
发布于 2021-01-03 23:35:00
这是正确的,本地不支持超参数调整,因为SageMaker SDK中不提供HPO库。
https://stackoverflow.com/questions/64422493
复制相似问题