←  APIs and Utilities

ComputerCraft | Programmable Computers for Minecraft

»

Artificial Inteligence in ComputerCraft -...

Poll: Artificial Inteligence in ComputerCraft - NeuralNetworks

Do you like the idea?

You cannot see the results of the poll until you have voted. Please login and cast your vote to see the results of this poll.

Do you like this implemetation?

You cannot see the results of the poll until you have voted. Please login and cast your vote to see the results of this poll.
Vote Guests cannot vote

Creator's Photo Creator 10 Oct 2015

--AI--


A long time ago, I got interested in neural networks. Seeing the power they gave me , I tried coding one in Lua. In vain. It didn't work, so I gave it up. Some days ago I tried it again, and because I did not use the right approach, I failed. However, today my third attempt started. After working with pauses for 3-4 hours, it worked!

I can finally and proudly present you AI, a fully working neural network! This version has the ability to learn. Isn't that amazing. Some of the best suited uses would be recognizing handwriting, training it to emulate a XOR gate, finding the verb in a sentence, and other totally useful stuff.

You're dying to use it? Here are the different functions it provides you with:
Spoiler

Here is a GIF, even if there ain't much to see!
Posted Image
The GIF shows a XOR gate.

Download:
pastebin get GHHCma5U AI

An example program:
pastebin get LRKaMh54 NN

Ideas for improvements:
  • Add a way to save a neural network to a file.

Edited by Creator, 12 October 2015 - 08:01 PM.
Quote

H4X0RZ's Photo H4X0RZ 10 Oct 2015

Awesome!
Quote

Creator's Photo Creator 10 Oct 2015

Thanks a lot!

An idea I have to improve AI would be to add a way to save the network to a file.
Quote

FUNCTION MAN!'s Photo FUNCTION MAN! 10 Oct 2015

Now make waifu2x for ComputerCraft!
Hm, that'd be rather useless. Make waifu2x IN computercraft!
Edited by DemHydraz, 10 October 2015 - 04:13 PM.
Quote

Creator's Photo Creator 10 Oct 2015

View PostDemHydraz, on 10 October 2015 - 04:13 PM, said:

Now make waifu2x for ComputerCraft!
Hm, that'd be rather useless. Make waifu2x IN computercraft!

What is waifu2x?
Quote

FUNCTION MAN!'s Photo FUNCTION MAN! 10 Oct 2015

Can you google?
Edited by DemHydraz, 10 October 2015 - 04:27 PM.
Quote

Creator's Photo Creator 10 Oct 2015

You brought it up, so just tell me.
Quote

Creator's Photo Creator 10 Oct 2015

So it allows you to upscale anime pictures?
Quote

FUNCTION MAN!'s Photo FUNCTION MAN! 10 Oct 2015

Yes, using deep convoluted neural networks. It's written in lua, too.
Quote

Creator's Photo Creator 10 Oct 2015

View PostDemHydraz, on 10 October 2015 - 04:41 PM, said:

Yes, using deep convoluted neural networks. It's written in lua, too.
\

How many input neurons does it have? How many hidden layers?
Quote

FUNCTION MAN!'s Photo FUNCTION MAN! 10 Oct 2015

How should I know? Go study the source!
Quote

Creator's Photo Creator 10 Oct 2015

Another day, mate!
Quote

Exerro's Photo Exerro 10 Oct 2015

This seems pretty awesome, I'm going to play around with it.

Just so you know:

View PostCreator, on 10 October 2015 - 03:12 PM, said:

pasetbin get GHHCma5U AI

View PostCreator, on 10 October 2015 - 03:12 PM, said:

pasetbin get LRKaMh54 NN
Not everyone has "pasetbin", you should probably give a pastebin download too :P.
Edited by awsumben13, 10 October 2015 - 08:37 PM.
Quote

Imred Gemu's Photo Imred Gemu 10 Oct 2015

View Postawsumben13, on 10 October 2015 - 08:37 PM, said:

This seems pretty awesome, I'm going to play around with it.

Just so you know:

View PostCreator, on 10 October 2015 - 03:12 PM, said:

pasetbin get GHHCma5U AI

View PostCreator, on 10 October 2015 - 03:12 PM, said:

pasetbin get LRKaMh54 NN
Not everyone has "pasetbin", you should probably give a pastebin download too :P.
http://pastebin.com/[code]
Quote

Exerro's Photo Exerro 10 Oct 2015

View PostImred Gemu, on 10 October 2015 - 08:54 PM, said:

View Postawsumben13, on 10 October 2015 - 08:37 PM, said:

-snip-
Not everyone has "pasetbin", you should probably give a pastebin download too :P.
http://pastebin.com/[code]
I was referring to the typo.
Edited by awsumben13, 10 October 2015 - 08:57 PM.
Quote

Creator's Photo Creator 10 Oct 2015

@Awesumben13, thanks for the heads-up. I can't believe this happened again. When I released FileX I had written pastebun.
Quote

Dahknee's Photo Dahknee 10 Oct 2015

This is pretty cool, as you work on this more it could become pretty be awesome! :D
Edited by DannySMc, 10 October 2015 - 09:27 PM.
Quote

Creator's Photo Creator 10 Oct 2015

What do you think there is more to work on?
Quote

Imred Gemu's Photo Imred Gemu 10 Oct 2015

View Postawsumben13, on 10 October 2015 - 08:57 PM, said:

View PostImred Gemu, on 10 October 2015 - 08:54 PM, said:

View Postawsumben13, on 10 October 2015 - 08:37 PM, said:

-snip-
Not everyone has "pasetbin", you should probably give a pastebin download too :P.
http://pastebin.com/[code]
I was referring to the typo.
Ah, didn't catch that
Quote