Reg*_*hew 5 python-3.x hyperopt
此查询指的是将试验用作 fmin 中的参数。
trials = Trials()
best = fmin(objective, space=hp.uniform('x', -10, 10), algo=tpe.suggest,
max_evals=100, trials=trials)
Run Code Online (Sandbox Code Playgroud)
文档 ( https://github.com/hyperopt/hyperopt/wiki/FMin ) 指出,试验对象获得了诸如trial.trials、trial.results、trial.losses()和trial.statuses() 之类的列表。
但是,我看到了文档中没有提到的trials.best_trial和trial.trial_attachments等用法。
现在我想知道如何获得试验对象的所有内容的列表?对象类型是hyperopt.base.Trials。
小智 4
根据Hyperopt 代码:“试验 - 至少包括子文档的文档列表
['spec'] - the specification of hyper-parameters for a job
['result'] - the result of Domain.evaluate(). Typically includes:
['status'] - one of the STATUS_STRINGS
['loss'] - real-valued scalar that hyperopt is trying to minimize
['idxs'] - compressed representation of spec
['vals'] - compressed representation of spec
['tid'] - trial id (unique in Trials list)`
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4526 次 |
| 最近记录: |