Skip to content

Commit

Permalink
XGBoost demo - change quota calculation (#3093)
Browse files Browse the repository at this point in the history
* removing worker count , and changing quota

* removing worker count from sample test

* removing comma after worker int value
  • Loading branch information
SinaChavoshi authored Feb 18, 2020
1 parent 9f328a7 commit 9f41e68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions samples/core/xgboost_training_cm/xgboost_training_cm.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,17 +209,17 @@ def xgb_train_pipeline(
project='{{kfp-project-id}}',
diagnostic_mode='HALT_ON_ERROR',
rounds=5,
workers=1,
):
output_template = str(output) + '/' + dsl.RUN_ID_PLACEHOLDER + '/data'
region='us-central1'
quota_check=[{'region':region,'metric':'CPUS','quota_needed':1.0}]
workers=2
quota_check=[{'region':region,'metric':'CPUS','quota_needed':12.0}]
train_data='gs://ml-pipeline-playground/sfpd/train.csv'
eval_data='gs://ml-pipeline-playground/sfpd/eval.csv'
schema='gs://ml-pipeline-playground/sfpd/schema.json'
true_label='ACTION'
target='resolution'
required_apis='storage-api.googleapis.com, dataproc.googleapis.com'
required_apis='dataproc.googleapis.com'
cluster_name='xgb-%s' % dsl.RUN_ID_PLACEHOLDER

# Current GCP pyspark/spark op do not provide outputs as return values, instead,
Expand Down
1 change: 0 additions & 1 deletion test/sample-test/configs/xgboost_training_cm.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ arguments:
output:
project: ml-pipeline-test
rounds: 5
workers: 2
diagnostic_mode: False
test_timeout: 3600 # xgboost needs extra time, 60 * 60 secs

0 comments on commit 9f41e68

Please sign in to comment.