回答編集履歴
3
説明リンク追加
test
CHANGED
@@ -8,9 +8,15 @@
|
|
8
8
|
|
9
9
|
sagemaker.estimator.Estimator
|
10
10
|
|
11
|
-
のパラメータ名の変更
|
11
|
+
のパラメータ名の変更や
|
12
12
|
|
13
13
|
[https://sagemaker.readthedocs.io/en/stable/v2.html#renamed-estimator-parameters](https://sagemaker.readthedocs.io/en/stable/v2.html#renamed-estimator-parameters)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
シリアライザの変更もあります。
|
18
|
+
|
19
|
+
[https://sagemaker.readthedocs.io/en/stable/v2.html#pre-instantiated-serializer-and-deserializer-objects](https://sagemaker.readthedocs.io/en/stable/v2.html#pre-instantiated-serializer-and-deserializer-objects)
|
14
20
|
|
15
21
|
|
16
22
|
|
2
変更箇所を追加
test
CHANGED
@@ -28,10 +28,20 @@
|
|
28
28
|
|
29
29
|
```python
|
30
30
|
|
31
|
-
# アルゴリズム設定
|
32
|
-
|
33
31
|
#xgb = sagemaker.estimator.Estimator(containers[my_region],role, train_instance_count=1, train_instance_type='ml.m4.xlarge',output_path='s3://{}/{}/output'.format(bucket_name, prefix),sagemaker_session=sess)
|
34
32
|
|
35
33
|
xgb = sagemaker.estimator.Estimator(containers[my_region],role, instance_count=1, instance_type='ml.m4.xlarge',output_path='s3://{}/{}/output'.format(bucket_name, prefix),sagemaker_session=sess)
|
36
34
|
|
37
35
|
```
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
```python
|
40
|
+
|
41
|
+
#xgb_predictor.content_type = 'text/csv' # set the data type for an inference
|
42
|
+
|
43
|
+
#xgb_predictor.serializer = csv_serializer # set the serializer type
|
44
|
+
|
45
|
+
xgb_predictor.serializer = sagemaker.serializers.CSVSerializer()
|
46
|
+
|
47
|
+
```
|
1
リンクをハイパリンクに修正
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
SageMaker Python SDK v2からインターフェースが変更になったようです。
|
4
4
|
|
5
|
-
https://sagemaker.readthedocs.io/en/stable/v2.html#inputs
|
5
|
+
[https://sagemaker.readthedocs.io/en/stable/v2.html#inputs](https://sagemaker.readthedocs.io/en/stable/v2.html#inputs)
|
6
6
|
|
7
7
|
|
8
8
|
|
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
のパラメータ名の変更もあります。
|
12
12
|
|
13
|
-
https://sagemaker.readthedocs.io/en/stable/v2.html#renamed-estimator-parameters
|
13
|
+
[https://sagemaker.readthedocs.io/en/stable/v2.html#renamed-estimator-parameters](https://sagemaker.readthedocs.io/en/stable/v2.html#renamed-estimator-parameters)
|
14
14
|
|
15
15
|
|
16
16
|
|