forked from aws-controllers-k8s/sagemaker-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmy-training-job.yaml
More file actions
53 lines (53 loc) · 1.78 KB
/
Copy pathmy-training-job.yaml
File metadata and controls
53 lines (53 loc) · 1.78 KB
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
apiVersion: sagemaker.services.k8s.aws/v1alpha1
kind: TrainingJob
metadata:
name: <YOUR JOB NAME>
spec:
# Name that will appear in SageMaker console
trainingJobName: <YOUR JOB NAME>
# Modify these parameters to meet your own script's needs
hyperParameters:
max_depth: "5"
gamma: "4"
eta: "0.2"
min_child_weight: "6"
silent: "0"
objective: "multi:softmax"
num_class: "10"
num_round: "10"
algorithmSpecification:
# The URL and tag of your ECR container
# If you are not on us-west-2 you can find an imageURI here https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
trainingImage: 433757028032.dkr.ecr.us-west-2.amazonaws.com/xgboost:1
trainingInputMode: File
# A role with SageMaker and S3 access
# example arn:aws:iam::1234567890:role/service-role/AmazonSageMaker-ExecutionRole
roleARN: <YOUR SAGEMAKER ROLE ARN>
outputDataConfig:
# The output path of our model
s3OutputPath: s3://<YOUR BUCKET/OUTPUT>
resourceConfig:
instanceCount: 1
instanceType: ml.m4.xlarge
volumeSizeInGB: 5
stoppingCondition:
maxRuntimeInSeconds: 86400
inputDataConfig:
- channelName: train
dataSource:
s3DataSource:
s3DataType: S3Prefix
# The input path of our train data
s3URI: s3://<YOUR BUCKET>/sagemaker/xgboost/train
s3DataDistributionType: FullyReplicated
contentType: text/libsvm
compressionType: None
- channelName: validation
dataSource:
s3DataSource:
s3DataType: S3Prefix
# The input path of our validation data
s3URI: s3://<YOUR BUCKET>/sagemaker/xgboost/validation
s3DataDistributionType: FullyReplicated
contentType: text/libsvm
compressionType: None