This repository has been archived by the owner on Jul 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathxgboost-mnist-hpo.yaml
109 lines (109 loc) · 2.91 KB
/
xgboost-mnist-hpo.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
apiVersion: sagemaker.aws.amazon.com/v1
kind: HyperparameterTuningJob
metadata:
name: xgboost-mnist-hpo
spec:
region: us-west-2
tags:
- key: test-key
value: test-value
hyperParameterTuningJobConfig:
strategy: Bayesian
hyperParameterTuningJobObjective:
type: Minimize
metricName: validation:error
resourceLimits:
maxNumberOfTrainingJobs: 10
maxParallelTrainingJobs: 5
parameterRanges:
integerParameterRanges:
- name: num_round
minValue: '10'
maxValue: '20'
scalingType: Linear
continuousParameterRanges: []
categoricalParameterRanges: []
trainingJobEarlyStoppingType: Auto
trainingJobDefinition:
staticHyperParameters:
- name: base_score
value: '0.5'
- name: booster
value: gbtree
- name: csv_weights
value: '0'
- name: dsplit
value: row
- name: grow_policy
value: depthwise
- name: lambda_bias
value: '0.0'
- name: max_bin
value: '256'
- name: max_leaves
value: '0'
- name: normalize_type
value: tree
- name: objective
value: reg:linear
- name: one_drop
value: '0'
- name: prob_buffer_row
value: '1.0'
- name: process_type
value: default
- name: rate_drop
value: '0.0'
- name: refresh_leaf
value: '1'
- name: sample_type
value: uniform
- name: scale_pos_weight
value: '1.0'
- name: silent
value: '0'
- name: sketch_eps
value: '0.03'
- name: skip_drop
value: '0.0'
- name: tree_method
value: auto
- name: tweedie_variance_power
value: '1.5'
- name: updater
value: grow_colmaker,prune
algorithmSpecification:
trainingImage: 433757028032.dkr.ecr.us-west-2.amazonaws.com/xgboost:1
trainingInputMode: File
roleArn: arn:aws:iam::123456789012:role/service-role/AmazonSageMaker-ExecutionRole
inputDataConfig:
- channelName: train
dataSource:
s3DataSource:
s3DataType: S3Prefix
s3Uri: s3://my-bucket/xgboost/train/
s3DataDistributionType: FullyReplicated
contentType: text/csv
compressionType: None
recordWrapperType: None
inputMode: File
- channelName: validation
dataSource:
s3DataSource:
s3DataType: S3Prefix
s3Uri: s3://my-bucket/xgboost/validation/
s3DataDistributionType: FullyReplicated
contentType: text/csv
compressionType: None
recordWrapperType: None
inputMode: File
outputDataConfig:
s3OutputPath: s3://my-bucket/xgboost
resourceConfig:
instanceType: ml.m4.xlarge
instanceCount: 1
volumeSizeInGB: 25
stoppingCondition:
maxRuntimeInSeconds: 3600
enableNetworkIsolation: true
enableInterContainerTrafficEncryption: false