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

Increased performance on agents

Open KReguieg opened this issue 7 years ago • 5 comments

Hey fellow ml devs,

I have a question about the performance of trained agents.

Let's say you have a swarm implemented in a classical way with algorithms on the CPU or GPU your number of agents would be limited to the power of the machine and the algorithms you use it on, right? But let me ask, is a reinforced agent in general more performant because he just chooses his actions out of matrix/tree depending on the state he is in compared to one calculating its vectors in real time based on algorithms? And do you maybe know a way of comparing ml-agents to classical trained agents?

Cheers, Khaled.

KReguieg avatar Mar 26 '19 21:03 KReguieg

@KReguieg a classic swarm algorithm is going to be much less computationally expensive than using this framework, but this framework can teach agents to do things that would be impractical or impossible in a classical way and thats the strength. For small, well defined, bounded problems its better to just write the code.

For large complex unwieldy problems sometimes this kind of machine learning can out perform classical approaches. For example maybe you program some agents to swarm around, and then use reinforcement learning to make another agent with a goal of herding them into containers like a herding dog does with sheep, that herding behavior would probably be difficult to come up with a high performant algorithm for but a neural network may have an impressive solution

sterlingcrispin avatar Mar 27 '19 15:03 sterlingcrispin

@sterlingcrispin yes the framework itself is ofcourse less performant but like the agents themself, couldn't they be more performant because they already 'know' what to do when?

But great explanation in general it made the advantages and disadvantages more clear. And nice idea with the herding dog I actually had a similar idea with a predator attacking the swarm and trained predator evasion. Let's see where my research takes me. I will keep you posted.

KReguieg avatar Mar 27 '19 18:03 KReguieg

The agents might be extremely good at solving the task, try it out!

sterlingcrispin avatar Mar 27 '19 18:03 sterlingcrispin

Thanks for reaching out to us. Hopefully you were able to resolve your issue. We are closing this due to inactivity, but if you need additional assistance, feel free to reopen the issue.

xiaomaogy avatar May 21 '19 01:05 xiaomaogy

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 May 20 '20 19:05 lock[bot]