【发布时间】:2020-01-15 23:16:30
【问题描述】:
我正在尝试使用 Hyperas 中的 optim.minimize。运行的代码是google colab,python 3 + GPU。
当我运行这个时:
best_run, best_model = optim.minimize(model=create_model, data=new_data, algo=tpe.suggest,max_evals=100, trials=Trials(), notebook_name='xxxxxx')
抛出此错误:
......
/usr/lib/python3.6/inspect.py in getfile(object)
664 return object.co_filename
665 raise TypeError('{!r} is not a module, class, method, '
--> 666 'function, traceback, frame, or code object'.format(object))
类型错误:
[6743 行 x 10 列] 不是模块、类、方法、函数, 回溯、框架或代码对象
有什么线索吗?
谢谢!
【问题讨论】:
-
能否提供可重现的代码或colab中代码的链接?
标签: python tensorflow hyperas