|
| 1 | +apiVersion: sagemaker.services.k8s.aws/v1alpha1 |
| 2 | +kind: HyperParameterTuningJob |
| 3 | +metadata: |
| 4 | + creationTimestamp: null |
| 5 | + name: unit-testing-hyper-parameter-tuning-job |
| 6 | +spec: |
| 7 | + hyperParameterTuningJobConfig: |
| 8 | + hyperParameterTuningJobObjective: |
| 9 | + metricName: validation:error |
| 10 | + type_: Minimize |
| 11 | + parameterRanges: |
| 12 | + categoricalParameterRanges: |
| 13 | + - name: category |
| 14 | + values: |
| 15 | + - test |
| 16 | + continuousParameterRanges: |
| 17 | + - maxValue: "5" |
| 18 | + minValue: "0" |
| 19 | + name: gamma |
| 20 | + scalingType: Linear |
| 21 | + integerParameterRanges: |
| 22 | + - maxValue: "20" |
| 23 | + minValue: "10" |
| 24 | + name: num_round |
| 25 | + scalingType: Linear |
| 26 | + resourceLimits: |
| 27 | + maxNumberOfTrainingJobs: 2 |
| 28 | + maxParallelTrainingJobs: 1 |
| 29 | + strategy: Bayesian |
| 30 | + trainingJobEarlyStoppingType: Auto |
| 31 | + hyperParameterTuningJobName: unit-testing-hpo-job |
| 32 | + tags: |
| 33 | + - key: algorithm |
| 34 | + value: xgboost |
| 35 | + - key: environment |
| 36 | + value: testing |
| 37 | + - key: customer |
| 38 | + value: test-user |
| 39 | + trainingJobDefinition: |
| 40 | + algorithmSpecification: |
| 41 | + metricDefinitions: |
| 42 | + - name: train:mae |
| 43 | + regex: .*\[[0-9]+\].*#011train-mae:([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?).* |
| 44 | + - name: validation:auc |
| 45 | + regex: .*\[[0-9]+\].*#011validation-auc:([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?).* |
| 46 | + - name: train:merror |
| 47 | + regex: .*\[[0-9]+\].*#011train-merror:([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?).* |
| 48 | + - name: train:auc |
| 49 | + regex: .*\[[0-9]+\].*#011train-auc:([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?).* |
| 50 | + - name: validation:mae |
| 51 | + regex: .*\[[0-9]+\].*#011validation-mae:([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?).* |
| 52 | + - name: validation:error |
| 53 | + regex: .*\[[0-9]+\].*#011validation-error:([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?).* |
| 54 | + - name: validation:merror |
| 55 | + regex: .*\[[0-9]+\].*#011validation-merror:([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?).* |
| 56 | + - name: validation:logloss |
| 57 | + regex: .*\[[0-9]+\].*#011validation-logloss:([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?).* |
| 58 | + - name: train:rmse |
| 59 | + regex: .*\[[0-9]+\].*#011train-rmse:([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?).* |
| 60 | + - name: train:logloss |
| 61 | + regex: .*\[[0-9]+\].*#011train-logloss:([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?).* |
| 62 | + - name: train:mlogloss |
| 63 | + regex: .*\[[0-9]+\].*#011train-mlogloss:([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?).* |
| 64 | + - name: validation:rmse |
| 65 | + regex: .*\[[0-9]+\].*#011validation-rmse:([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?).* |
| 66 | + - name: validation:ndcg |
| 67 | + regex: .*\[[0-9]+\].*#011validation-ndcg:([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?).* |
| 68 | + - name: train:error |
| 69 | + regex: .*\[[0-9]+\].*#011train-error:([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?).* |
| 70 | + - name: validation:mlogloss |
| 71 | + regex: .*\[[0-9]+\].*#011validation-mlogloss:([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?).* |
| 72 | + - name: train:ndcg |
| 73 | + regex: .*\[[0-9]+\].*#011train-ndcg:([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?).* |
| 74 | + - name: train:map |
| 75 | + regex: .*\[[0-9]+\].*#011train-map:([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?).* |
| 76 | + - name: validation:map |
| 77 | + regex: .*\[[0-9]+\].*#011validation-map:([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?).* |
| 78 | + - name: ObjectiveMetric |
| 79 | + regex: .*\[[0-9]+\].*#011validation-error:([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?).* |
| 80 | + trainingImage: 433757028032.dkr.ecr.us-west-2.amazonaws.com/xgboost:1 |
| 81 | + trainingInputMode: File |
| 82 | + enableInterContainerTrafficEncryption: false |
| 83 | + enableManagedSpotTraining: false |
| 84 | + enableNetworkIsolation: true |
| 85 | + inputDataConfig: |
| 86 | + - channelName: train |
| 87 | + compressionType: None |
| 88 | + contentType: text/csv |
| 89 | + dataSource: |
| 90 | + s3DataSource: |
| 91 | + s3DataDistributionType: FullyReplicated |
| 92 | + s3DataType: S3Prefix |
| 93 | + s3URI: s3://source-data-bucket-592697580195-us-west-2/sagemaker/training/train |
| 94 | + inputMode: File |
| 95 | + recordWrapperType: None |
| 96 | + - channelName: validation |
| 97 | + compressionType: None |
| 98 | + contentType: text/csv |
| 99 | + dataSource: |
| 100 | + s3DataSource: |
| 101 | + s3DataDistributionType: FullyReplicated |
| 102 | + s3DataType: S3Prefix |
| 103 | + s3URI: s3://source-data-bucket-592697580195-us-west-2/sagemaker/training/validation/ |
| 104 | + inputMode: File |
| 105 | + recordWrapperType: None |
| 106 | + outputDataConfig: |
| 107 | + s3OutputPath: s3://source-data-bucket-592697580195-us-west-2/sagemaker/hpo/output |
| 108 | + resourceConfig: |
| 109 | + instanceCount: 1 |
| 110 | + instanceType: ml.m5.large |
| 111 | + volumeSizeInGB: 25 |
| 112 | + roleARN: arn:aws:iam::123456789012:role/service-role/AmazonSageMaker-ExecutionRole-20210920T111639 |
| 113 | + staticHyperParameters: |
| 114 | + base_score: "0.5" |
| 115 | + stoppingCondition: |
| 116 | + maxRuntimeInSeconds: 3600 |
| 117 | +status: |
| 118 | + ackResourceMetadata: |
| 119 | + arn: arn:aws:sagemaker:us-west-2:123456789012:hyper-parameter-tuning-job/unit-testing-hpo-job |
| 120 | + ownerAccountID: "" |
| 121 | + conditions: |
| 122 | + - message: HyperParameterTuningJob is in InProgress status. |
| 123 | + status: "False" |
| 124 | + type: ACK.ResourceSynced |
| 125 | + - lastTransitionTime: "0001-01-01T00:00:00Z" |
| 126 | + message: Late initialization successful |
| 127 | + reason: Late initialization successful |
| 128 | + status: "True" |
| 129 | + type: ACK.LateInitialized |
| 130 | + hyperParameterTuningJobStatus: InProgress |
0 commit comments