Ax icon indicating copy to clipboard operation
Ax copied to clipboard

How to solve the multi class must be 'ovr or ovo'?

Open ghezalahmad opened this issue 3 years ago • 1 comments

I have a dataset and want to apply ax multi objective optimization. The target 'y' is a multi-class, I know how to solve it in ML models but in here it gives error in this line:

mobo_data = initialize_experiment(mobo_experiment)

Here is the function of the 'initialize_experiment()

def initialize_experiment(experiment): sobol = Models.SOBOL(search_space=experiment.search_space)

for _ in range(N_INIT):
    experiment.new_trial(sobol.gen(1)).run()

return experiment.fetch_data()

Can you please let me know how to train it on multi-class. image

ghezalahmad avatar May 16 '22 13:05 ghezalahmad

Not sure I fully understand the issue here. Are you trying to train a multiclass classification model and optimize the hyperparameters for the training job? Can you provide some more detail on your experiment setup (what exactly is the search space, and what are the metrics)?

Balandat avatar May 16 '22 15:05 Balandat

Closing as inactive. @ghezalahmad, please reopen the issue if you do follow up on it!

lena-kashtelyan avatar Sep 13 '22 16:09 lena-kashtelyan