Skip to content

Commit 9ca5cbf

Browse files
authored
chore: fix param names in experiments samples (#1610)
1 parent 72fd36d commit 9ca5cbf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

samples/model-builder/experiment_tracking/log_metrics_sample.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ def log_metrics_sample(
2525
project: str,
2626
location: str,
2727
):
28-
aiplatform.init(experiment_name=experiment_name, project=project, location=location)
28+
aiplatform.init(experiment=experiment_name, project=project, location=location)
2929

30-
aiplatform.start_run(run_name=run_name, resume=True)
30+
aiplatform.start_run(run=run_name, resume=True)
3131

3232
aiplatform.log_metrics(metrics)
3333

samples/model-builder/experiment_tracking/log_params_sample.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ def log_params_sample(
2525
project: str,
2626
location: str,
2727
):
28-
aiplatform.init(experiment_name=experiment_name, project=project, location=location)
28+
aiplatform.init(experiment=experiment_name, project=project, location=location)
2929

30-
aiplatform.start_run(run_name=run_name, resume=True)
30+
aiplatform.start_run(run=run_name, resume=True)
3131

3232
aiplatform.log_params(params)
3333

0 commit comments

Comments
 (0)