ml-agents icon indicating copy to clipboard operation
ml-agents copied to clipboard

In 3d Locomotion Training Brain Chooses a Single Path Despite Altering New Objectives

Open elanrosen opened this issue 8 years ago • 4 comments

ice_video_20180206-063535 I gave the agent access to the camera angle shown above at 120x120. the reward always equals reward = .72f - distance - Zdistance; zdistance being distance on z axis and distance being distance in total on all axises. The values sent to the reward are always scaled to less rotateCorrect = (Mathf.Abs(Quaternion.identity.x - QuadRotation.x) * 10f) - (Mathf.Abs(Quaternion.identity.y - QuadRotation.y) * 10f) - (Mathf.Abs(Quaternion.identity.z - QuadRotation.z) * 10f) + .67f; reward = reward + rotateCorrect + .1f; the second part is just making the rotation more realistic on hit. This fixes a weird issue where it abused the physics by rotation 120 degrees to hit which was unrealistic for later applications.

Preferably it would learn to adapt to changing targets but despite my efforts to induce different actions, no result occurs. Any suggestions.

elanrosen avatar Feb 07 '18 14:02 elanrosen

Hi @elanrosen training an agent based on image input is not trivial. I couldn't solve a much easier environment as discussed in issue #198 . However, the GridWorld example is capable of learning a reasonable behavior. I might get some time to spare for my older issue to make further investigations.

MarcoMeter avatar Feb 07 '18 14:02 MarcoMeter

thanks @MarcoMeter I retried the training but with a curved reward system instead of the linear one I showed above. I got much better results with the agent being able to successfully hit both the far left and far right targets.

elanrosen avatar Feb 07 '18 20:02 elanrosen

Thank you for the discussion. We are closing this issue due to inactivity. Feel free to reopen it if you’d like to continue to discussion though.

eshvk avatar Mar 28 '18 21:03 eshvk

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jan 03 '20 14:01 lock[bot]