Questions tagged [hyperopt]

Hyperopt is a Python library for serial and parallel optimization over awkward search spaces, which may include real-valued, discrete, and conditional dimensions

Resources and Tutorials:

128 questions
0
votes
1 answer

In a highly parallelized HyperOpt instance, why doesn't subprocess.Popen/os.system with > and 2> work?

I need to run HyperOpt in a very parallelized manner (like 200+ workers). With less than 200 workers, all works fine. But when more workers are started, I cannot get the Output of any program anymore (which I need) from the objective function. I…
0
votes
1 answer

ValueError of hyperopt in searching parameters of RandomForest

I am trying to find parameters of RandomForestClassifier using hyperopt. Here is my code: X, y = load_wine(return_X_y=True) def rf_neg_score(params): X, y = params.pop('X'), params.pop('y') cv = params.pop('cv') scoring =…
0
votes
1 answer

reinitializing keras model weights after each training pass

I noticed few similar questions similar to this one in Stack-overflow, but none has an answer .. I have a simple Keras model: def create_model(x_train, y_train, x_val, y_val): # building the model # compile # fit # return the score…
Minions
  • 5,104
  • 5
  • 50
  • 91
0
votes
2 answers

Does Hyperopt support subset of choices?

I have a set of choices A. I would like to get back a subset of choices A. Is this possible with Hyperopt? input: { 'A': hp.choice('A', [0, 1, 2, 3]) } output: { 'A': [0, 2] }
Jeff Hernandez
  • 2,063
  • 16
  • 20
0
votes
0 answers

hyperopt Import error. unrecognized arguments: -f

import hyperopt usage: main.py [options] [file_or_dir] [file_or_dir] [...] main.py: error: unrecognized arguments: -f inifile: None rootdir: C:\Users\Myname C:\Anaconda2\lib\site-packages\IPython\core\interactiveshell.py:2889: UserWarning: To exit:…
0
votes
2 answers

Hyperopt Exploration/Exploitation strategy

What kind of settings Hyperopt provides to adjust balance between exploration with exploitation ? There's something like "bandit" and "bandit_algo" in the code but no explanation. Could someone provide any code sample. Thanks a lot for any help!
-1
votes
1 answer

Hyperopt TypeError because of passing parameters to function

I have function with many params, I want to optimize my model with hyperopt, using this function def optifunc(model_class, data, init_a, init_k, train_a, train_k, pred_a, pred_k): print(model_class, data, init_a, init_k, train_a, train_k,…
-1
votes
1 answer

Python : Hypteropt - Function input

Im trying to implemnt a multidimensional hypterparamter optimization. I have a function with many arguments but only 4 which have to be optimzized. I wonder how i can pass this to hypteropt. I thoughtg something like this should work in a test…
Varlor
  • 1,421
  • 3
  • 22
  • 46
1 2 3
8
9