Skip to content

Commit

Permalink
unify objective function
Browse files Browse the repository at this point in the history
Signed-off-by: helenxie-bit <[email protected]>
  • Loading branch information
helenxie-bit committed Jan 23, 2025
1 parent 8cd3d0c commit b1d07ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdk/python/v1beta1/kubeflow/katib/api/katib_client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def create_experiment(
"missing name",
{
"name": None,
"objective": lambda x: x,
"objective": lambda x: print(f"a={x}"),
"parameters": {"a": katib.search.int(min=10, max=100)},
},
ValueError,
Expand All @@ -314,7 +314,7 @@ def create_experiment(
"invalid hybrid parameters - objective and model_provider_parameters",
{
"name": "tune_test",
"objective": lambda x: x,
"objective": lambda x: print(f"a={x}"),
"model_provider_parameters": HuggingFaceModelParams(
model_uri="hf://google-bert/bert-base-cased",
transformer_type=transformers.AutoModelForSequenceClassification,
Expand All @@ -334,7 +334,7 @@ def create_experiment(
"missing parameters in custom objective tuning - lack parameters",
{
"name": "tune_test",
"objective": lambda x: x,
"objective": lambda x: print(f"a={x}"),
},
ValueError,
),
Expand Down

0 comments on commit b1d07ce

Please sign in to comment.