Jump to content




Artificial Inteligence in ComputerCraft - NeuralNetworks


146 replies to this topic

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

#1 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 10 October 2015 - 03:12 PM

--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.


#2 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 10 October 2015 - 03:44 PM

Awesome!

#3 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 10 October 2015 - 03:58 PM

Thanks a lot!

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

#4 FUNCTION MAN!

  • Members
  • 292 posts

Posted 10 October 2015 - 04:13 PM

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

Edited by DemHydraz, 10 October 2015 - 04:13 PM.


#5 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 10 October 2015 - 04:19 PM

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?

#6 FUNCTION MAN!

  • Members
  • 292 posts

Posted 10 October 2015 - 04:26 PM

Can you google?

Edited by DemHydraz, 10 October 2015 - 04:27 PM.


#7 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 10 October 2015 - 04:27 PM

You brought it up, so just tell me.

#8 FUNCTION MAN!

  • Members
  • 292 posts

Posted 10 October 2015 - 04:28 PM

https://github.com/nagadomi/waifu2x

#9 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 10 October 2015 - 04:37 PM

So it allows you to upscale anime pictures?

#10 FUNCTION MAN!

  • Members
  • 292 posts

Posted 10 October 2015 - 04:41 PM

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

#11 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 10 October 2015 - 04:46 PM

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?

#12 FUNCTION MAN!

  • Members
  • 292 posts

Posted 10 October 2015 - 04:52 PM

How should I know? Go study the source!

#13 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 10 October 2015 - 05:04 PM

Another day, mate!

#14 Exerro

  • Members
  • 801 posts

Posted 10 October 2015 - 08:37 PM

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.


#15 Imred Gemu

  • Members
  • 47 posts

Posted 10 October 2015 - 08:54 PM

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]

#16 Exerro

  • Members
  • 801 posts

Posted 10 October 2015 - 08:57 PM

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.


#17 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 10 October 2015 - 09:15 PM

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

#18 Dahknee

  • Members
  • 1,808 posts
  • Location/home/da

Posted 10 October 2015 - 09:26 PM

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.


#19 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 10 October 2015 - 09:46 PM

What do you think there is more to work on?

#20 Imred Gemu

  • Members
  • 47 posts

Posted 10 October 2015 - 10:53 PM

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users