Skip to content

Support conditional parameters in hyperparameters_tunning jobs #1189

@tsvisab

Description

@tsvisab

Hey!
I would like to pass hyperparameters spec which include conditional parameters as well as their parent parameter,
I have a silly example (Btw, should i only include the parent HPT?):

{ "C_A": { "conditional_parameter_spec": None, "parent_values": {"values": ["type_a"]}, "min": 0.001, "max": 1, "scale": "log", "spec_param_type": "DoubleParameterSpec", }, "C_B": { "conditional_parameter_spec": None, "parent_values": {"values": ["type_a"]}, "min": 0, "max": 1, "scale": "linear", "spec_param_type": "DoubleParameterSpec", }, "C_C": { "conditional_parameter_spec": None, "parent_values": None, "values": [64, 128, 512], "scale": "linear", "spec_param_type": "DiscreteParameterSpec", }, "model_type": { "conditional_parameter_spec": [ { "conditional_parameter_spec": None, "parent_values": {"values": ["type_a"]}, "min": 0.001, "max": 1, "scale": "log", "spec_param_type": "DoubleParameterSpec", }, { "conditional_parameter_spec": None, "parent_values": {"values": ["type_a"]}, "min": 0, "max": 1, "scale": "linear", "spec_param_type": "DoubleParameterSpec", }, ], "parent_values": None, "values": ["type_a", "type_b"], "spec_param_type": "CategoricalParameterSpec", }, }

so, i would be very happy if you could implement this as it seems it's in your TODO's

Also, it would be very much needed if you could provide a correct json example for running a hyperparameter job , there are several ways to run those but i'm using this one

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: vertex-aiIssues related to the googleapis/python-aiplatform API.triage meI really want to be triaged.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions