News for hackers. Stuff that matters.
Re:Controlling a 2D Robotic Arm with Deep Reinforcement Lear... by narenst on Thursday February 14, 2019 @01:31PM (#19164442)
Nice! As you go from 2D to 3D what are some unique issues you are expecting to run into?
Re:Controlling a 2D Robotic Arm with Deep Reinforcement Lear... by formalsystem on Thursday February 14, 2019 @02:01PM (#19164771)
What's nice about the move is that the reinforcement learning algorithm doesn't fundamentally change. The action and state spaces will be larger since a joint has more degrees of freedom in 3D than it does in 2D so learning may take longer so we'll need to also increase the size of the replay buffer and the episode length.

I'm planning on writing a followup post on 3D so stay tuned!

Re:Controlling a 2D Robotic Arm with Deep Reinforcement Lear... by kejaed on Friday February 15, 2019 @07:32PM (#19176114)
If the author reads this we’ve used VPython for simple simulation visualizations such as this and it has worked great both inside and outside of Jupyter notebooks.

http://www.glowscript.org/docs/VPythonDocs/index.html

Re:Controlling a 2D Robotic Arm with Deep Reinforcement Lear... by formalsystem on Friday February 15, 2019 @07:48PM (#19176209)
I'll check it out thank you for the note!
Re:Controlling a 2D Robotic Arm with Deep Reinforcement Lear... by giocampa on Saturday February 16, 2019 @04:51AM (#19177946)
This is so inspiring! Have you ever thought of implementing such a thing in ROS?
Re:Controlling a 2D Robotic Arm with Deep Reinforcement Lear... by formalsystem on Saturday February 16, 2019 @10:59AM (#19179166)
Happy to collaborate on it if you like, shouldn't be too hard
Re:Controlling a 2D Robotic Arm with Deep Reinforcement Lear... by adamnemecek on Friday February 15, 2019 @01:57PM (#19173647)
Mark (the author) is working on yuri.ai (https://yuri.ai), a deep reinforcement learning platform for games. Drop him a line or sign up if you are interested!
Re:Controlling a 2D Robotic Arm with Deep Reinforcement Lear... by ipsum2 on Friday February 15, 2019 @04:01PM (#19174672)
That's an unfortunate name. (Try Googling "yuri ai" without quotes)
Re:Controlling a 2D Robotic Arm with Deep Reinforcement Lear... by adamnemecek on Friday February 15, 2019 @04:18PM (#19174801)
Haha its a Command and conquer reference I believe.
Re:Controlling a 2D Robotic Arm with Deep Reinforcement Lear... by rcfox on Friday February 15, 2019 @04:45PM (#19175014)
It would be interesting to see a plot of the error compared to the analytical solution as it trains.
Re:Controlling a 2D Robotic Arm with Deep Reinforcement Lear... by formalsystem on Friday February 15, 2019 @05:54PM (#19175506)
The analytical solution wouldn't involve any training, you'd solve a system of equations where position of the finger is equal to where the goal is constrained by the equations which tell you how an arm moves.

The advantage of the RL approach is that it doesn't need to know how an arm moves but then involves some training.

Re:Controlling a 2D Robotic Arm with Deep Reinforcement Lear... by rcfox on Friday February 15, 2019 @06:04PM (#19175571)
Sorry, I meant compare the RL version as it trains to the analytical version.

It's certainly neat that inverse kinematics can be learned from zero knowledge, but I would have a hard time trusting it to operate a real arm in an industrial setting.

Re:Controlling a 2D Robotic Arm with Deep Reinforcement Lear... by formalsystem on Friday February 15, 2019 @06:18PM (#19175679)
You'd be entirely right not to trust it as it is in an industrial setting. There's been some research around safe exploration that would add additional terms to the reward function to do things like punish flailing around and such but I haven't experimented with those techniques myself.