問題タブ [hyperopt]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
365 参照

python - TypeError: hp_choice() は 2 つの位置引数を取りますが、7 つが指定されました

hyperas ライブラリを使用して、この keras モデルにハイパーパラメータの最適化を実行しようとしています。これまでにこれを行ったことがないため、基本的にステップバイステップの完全な例hereに従いましたが、言及されているエラーが発生しています。前もって感謝します。

0 投票する
1 に答える
578 参照

python - Hyperas エラーを使用する CNN Keras: AttributeError: 'str' object has no attribute 'ndim'

コードの最後でモデルを評価している行に到達するまで、モデルはコンパイルおよび実行されました。エラーは、文字列を受け取ったが、文字列を期待していなかったということだと思いますが、修正方法がわかりません。前もって感謝します。

最高のパフォーマンスを発揮するモデルの評価: data = [data = [standardize_single_array(x) for x in data] File "/home/bjorn/PycharmProjects/Test/venv/lib/python3.5/site-packages/keras/engine/training_utils.py",行 92、データ内 = [データ内の x の standardize_single_array(x)] ファイル "/home/bjorn/PycharmProjects/Test/venv/lib/python3.5/site-packages/keras/engine/training_utils.py"、行 27 、standardize_single_array elif x.ndim == 1: AttributeError: 'str' オブジェクトに属性 'ndim' がありません

プロセスは終了コード 1 で終了しました

0 投票する
1 に答える
487 参照

python - Hyperopt timeout?

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!