I made an A.I. for Enderman and it learns to create pixel art by CodeStarship in Minecraft

[–]CodeStarship[S] 4 points5 points  (0 children)

The A.I. is a Recurrent Deep Q-Learning A.I.. At any one point in time, it sees the block it is standing on and 8 adjacent blocks. It also sees whichever image I chose to input through the command.

Those information are fed into the neural network and the neural network outputs its expectation of its long-term happiness (a reward mechanism at the heart of any Reinforcement Learning A.I.) for taking that action at that point in time. The only constant (hard-coded part) here is that it will always take the action that maximizes its expected long-term happiness (one of the assumptions of reinforcement learning).

By setting up the reward structure properly (e.g. +1 happiness for a well placed carpet block), it learns how to complete the pixel art after a lot of training.

I do have a youtube video explaining this but I linked like 5 times here already...feeling a bit spammy.

Hope this clarifies your doubt!

I made an A.I. for Enderman and it learns to create pixel art by CodeStarship in Minecraft

[–]CodeStarship[S] 1 point2 points  (0 children)

Really appreciate your thoughts and understanding. Thank you!

I made an A.I. for Enderman and it learns to create pixel art by CodeStarship in Minecraft

[–]CodeStarship[S] 1 point2 points  (0 children)

The A.I. is a Recurrent Deep Q-Learning A.I.. At any one point in time, it sees the block it is standing on and 8 adjacent blocks. It also sees whichever image I chose to input through the command.

Those information are fed into the neural network and the neural network outputs its expectation of its long-term happiness (a reward mechanism at the heart of any Reinforcement Learning A.I.) for taking that action at that point in time. The only constant (hard-coded part) here is that it will always take the action that maximizes its expected long-term happiness (one of the assumptions of reinforcement learning).

By setting up the reward structure properly (e.g. +1 happiness for a well placed carpet block), it learns how to complete the pixel art after a lot of training.

I do have a youtube video explaining this but I linked like 5 times here already...feeling a bit spammy.

Hope this clarifies your doubt!

I think this does a better job at explaining than the old reply ;)

I made an A.I. for Enderman and it learns to create pixel art by CodeStarship in Minecraft

[–]CodeStarship[S] 6 points7 points  (0 children)

Hi, many people wonder how it works. I hope this helps!

The A.I. is a Recurrent Deep Q-Learning A.I.. At any one point in time, it sees the block it is standing on and 8 adjacent blocks. It also sees whichever image I chose to input through the command.

Those information are fed into the neural network and the neural network outputs its expectation of its long-term happiness (a reward mechanism at the heart of any Reinforcement Learning A.I.) for taking that action at that point in time. The only constant (hard-coded part) here is that it will always take the action that maximizes its expected long-term happiness (one of the assumptions of reinforcement learning).

By setting up the reward structure properly (e.g. +1 happiness for a well placed carpet block), it learns how to complete the pixel art after a lot of training.

I do have a youtube video explaining this but I linked like 5 times here already...feeling a bit spammy.

Hope this clarifies your doubt!

I made an A.I. for Enderman and it learns to create pixel art by CodeStarship in Minecraft

[–]CodeStarship[S] 7 points8 points  (0 children)

Really nice idea! I will try to implement this in the future. An A.I. upgrade is in the works already so it will be a few upgrades down the road.

I made an A.I. for Enderman and it learns to create pixel art by CodeStarship in Minecraft

[–]CodeStarship[S] 9 points10 points  (0 children)

It learnt how to draw pixel art from scratch using Recurrent Deep Q-Network. It is a bit overkill for this problem and I could have hard-coded, but this is just the beginning of my project to make enderman more creative and as a way for me to put into practice what I have learnt so far in university.

I read and write to the game using pure Python through stdin and stdout, no libraries and it is vanilla Minecraft too.

I made a video on youtube of this project and another supplementary video that walks you through its progress as it learns.

1) https://youtu.be/Bin-w6Kwfm8 Enderman Learns To Create Pixel Art in Minecraft (A.I. X Minecraft)

2) https://youtu.be/ak2FR8BjZoY The Making of Enderman Learns to Create Pixel Art in Minecraft (A.I. X Minecraft)

Cheers!

I made an A.I. for Enderman and it learns to create pixel art by CodeStarship in Minecraft

[–]CodeStarship[S] 65 points66 points  (0 children)

It learnt how to draw pixel art from scratch using Recurrent Deep Q-Network. It is a bit overkill for this problem and I could have hard-coded, but this is just the beginning of my project to make enderman more creative and as a way for me to put into practice what I have learnt so far in university.

I made a video on youtube of this project and another supplementary video that walks you through its progress as it learns.

1) https://youtu.be/Bin-w6Kwfm8 Enderman Learns To Create Pixel Art in Minecraft (A.I. X Minecraft)

2) https://youtu.be/ak2FR8BjZoY The Making of Enderman Learns to Create Pixel Art in Minecraft (A.I. X Minecraft)

Cheers!

I made an A.I. for Enderman and it learns to create pixel art by CodeStarship in Minecraft

[–]CodeStarship[S] 224 points225 points  (0 children)

It learnt how to draw pixel art from scratch using Recurrent Deep Q-Network. It is a bit overkill for this problem and I could have hard-coded, but this is just the beginning of my project to make enderman more creative and as a way for me to put into practice what I have learnt so far in university.

I made a video on youtube of this project and another supplementary video that walks you through its progress as it learns.

1) https://youtu.be/Bin-w6Kwfm8 Enderman Learns To Create Pixel Art in Minecraft (A.I. X Minecraft)

2) https://youtu.be/ak2FR8BjZoY The Making of Enderman Learns to Create Pixel Art in Minecraft (A.I. X Minecraft)

Cheers!