Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
Signed-off-by: Shashank Mittal <[email protected]>
  • Loading branch information
shashank-iitbhu committed Aug 27, 2024
1 parent fab5639 commit f0e8a12
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/v1beta1/hp-tuning/random.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ spec:
feasibleSpace:
min: "0.01"
max: "0.05"
step: "0.01"
distribution: "logUniform"
- name: momentum
parameterType: double
feasibleSpace:
Expand Down
7 changes: 7 additions & 0 deletions test/unit/v1beta1/suggestion/test_hyperopt_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import grpc
import grpc_testing
from pkg.suggestion.v1beta1.internal.constant import LOG_UNIFORM
import utils

from pkg.apis.manager.v1beta1.python import api_pb2
Expand Down Expand Up @@ -176,6 +177,12 @@ def test_get_suggestion(self):
parameter_type=api_pb2.DOUBLE,
feasible_space=api_pb2.FeasibleSpace(
max="5", min="1", list=[])
),
api_pb2.ParameterSpec(
name="param-5",
parameter_type=api_pb2.DOUBLE,
feasible_space=api_pb2.FeasibleSpace(
max="5", min="1", list=[], step="0.5", distribution=api_pb2.LOG_UNIFORM)
)
]
)
Expand Down

0 comments on commit f0e8a12

Please sign in to comment.