Django Girls and Boys 備忘録

Python、Selenium、Django、java、iPhoneアプリ、Excelマクロなどで気付いたこと、覚えておきたいことなどを載せていきます。

【Unity Python】ML-Agentsで”Heuristic method called but not implemented. Returning placeholder actions.”のようなエラーが表示された時の解決方法(Fewer observations(0) made...というエラーも解決か?)


Unityで「Unity ML-Agents実践ゲームプログラミング」に沿ってやっていく中で発生したエラーに以下のようなものもありました。

これも入手した解決方法を備忘録として残しておきます。

 

 

 

 

 

 

1.エラー内容

 

 

Heuristic method called but not implemented. Returning placeholder actions.

 

Unity側で学習をさせようとplayボタンをクリックした時にUnity側のコンソールに表示されたものです。

 

 

2.解決方法

 

 

これは、「Agent(Script)をデタッチすると治る」ということです。

 

その後、

 

InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings.

 

というエラーが出る場合があるようだが、

 

Edit->ProjectSettings->Player->OtherSettings->Configyuration->Active Input Handling

 

チェックボックスを「both」に変更することでエラーがなくなり操作できるようになるとのこと。

 

これにより、

 

 

Fewer observations(0) made...

 

のエラーも同時に解決したという情報あり。

 

以上が、”Heuristic method called but not implemented. Returning placeholder actions.”のようなエラーが表示された時の解決方法の一例になります。