aws / aws/sagemaker-python-sdk

Error when running hyperparameter tuning job locally

Đang mở
#1,960 5 bình luận 2 reaction 1 người được giao Được @rsareddy0329 nhận Xem trên GitHub
component: pysdk-team component: training contributions welcome type: bug type: feature request
Ngôn ngữ chính
Python
Star
2.3k
Fork
1.3k
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
35

Mô tả

**Describe the bug**
Running a hyperparameter tuning job locally using a sample code as given below produces an error: `AttributeError: 'LocalSagemakerClient' object has no attribute 'create_hyper_parameter_tuning_job'`.

```
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)
```

**To reproduce**
Use the Amazon AWS example from the link: https://github.com/aws/amazon-sagemaker-examples/tree/master/hyperparameter_tuning/keras_bring_your_own, and change instance_type to 'local'. For Hyperparameter tuning job, instead of using configurations as in the example, just use HyperparmeterTuner class as shown above.

**Expected behavior**
I'd expect it to work without the error.

**Screenshots or logs**
Screenshot of the error output given below.
![Error output](https://user-images.githubusercontent.com/10595202/96414449-6a1ae180-11ed-11eb-8b33-4498480905da.jpg)

**System information**
A description of your system. Please provide:
- **SageMaker Python SDK version**: 2.15
- **Framework name (eg. PyTorch) or algorithm (eg. KMeans)**: TensorFlow
- **Framework version**: 2.3.1
- **Python version**: 3.8
- **CPU or GPU**: CPU
- **Custom Docker image (Y/N)**: Y (Dockerfile from the AWS example code)

**Additional context**
Instead of using the AWS instances, trying to use the SageMaker hyperparameter tuning job locally for testing purposes.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.