0

I'm trying without success to set a timeout when calling 'fmin' from Hyperopt package.

I would like to stop the entire process when max_evals are reached or when time passed (from the first iteration not each trial) > timeout.

Anyone had the same problem and has somehow found a solution?

Many thanks!

4

1 回答 1

0

假设每次评估都不会太长,那么您可以在循环中运行 hyperopt,一次进行一次评估。每次开始评估时,通过 fmin() 之前的试验。有关文档,请参阅问题 267

我做了类似的事情,但我注意到的一个问题是我没有得到我期望的结果。它似乎在进行随机搜索,因为迭代和损失函数之间没有相关性。换句话说,它似乎并没有变得更聪明。也许这只是我。

于 2019-07-25T21:47:01.607 回答