記事一覧
Optuna: Trial XX failed because the number of the values 18 did not match the number of the objectives 1
パラメーターチューニングしていたら上記エラーが出ました。あまりにも基本的なミスだからかググっても出なかったので一応原因書いておきます。
理由は単純で、objective(trial)関数の返り値がfloatだと思っていたらstrになってしまっていました。普通にfloatにキャストしてあげれば解消しました。
I got the above error when I was tuning para