forked from aws/amazon-sagemaker-operator-for-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xgboost-mnist-trainingjob.yaml
55 lines (55 loc) · 1.66 KB
/
xgboost-mnist-trainingjob.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
apiVersion: sagemaker.aws.amazon.com/v1
kind: TrainingJob
metadata:
name: xgboost-mnist
spec:
hyperParameters:
- name: max_depth
value: "5"
- name: eta
value: "0.2"
- name: gamma
value: "4"
- name: min_child_weight
value: "6"
- name: silent
value: "0"
- name: objective
value: multi:softmax
- name: num_class
value: "10"
- name: num_round
value: "10"
algorithmSpecification:
trainingImage: 433757028032.dkr.ecr.us-west-2.amazonaws.com/xgboost:1
trainingInputMode: File
roleArn: arn:aws:iam::123456789012:role/service-role/AmazonSageMaker-ExecutionRole
region: us-west-2
outputDataConfig:
s3OutputPath: s3://my-bucket/xgboost/
resourceConfig:
instanceCount: 1
instanceType: ml.m4.xlarge
volumeSizeInGB: 5
stoppingCondition:
maxRuntimeInSeconds: 86400
inputDataConfig:
- channelName: train
dataSource:
s3DataSource:
s3DataType: S3Prefix
s3Uri: https://s3-us-west-2.amazonaws.com/my-bucket/xgboost/train/
s3DataDistributionType: FullyReplicated
contentType: text/csv
compressionType: None
- channelName: validation
dataSource:
s3DataSource:
s3DataType: S3Prefix
s3Uri: https://s3-us-west-2.amazonaws.com/my-bucket/xgboost/validation/
s3DataDistributionType: FullyReplicated
contentType: text/csv
compressionType: None
tags:
- key: tagKey
value: tagValue