Jump to content




Artificial Inteligence in ComputerCraft - NeuralNetworks


  • You cannot reply to this topic
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

#61 Creator

    Mad Dash Victor

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

Posted 15 October 2015 - 01:34 PM

In order to learn it also needs the expected result.So letting it be trained on its own is not an excellent idea.

#62 Creator

    Mad Dash Victor

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

Posted 16 October 2015 - 04:44 AM

Someone voted they don't like the implementation. What don't you like and what could be changed in your opinion?

#63 Andrew2060

  • Members
  • 109 posts
  • LocationLos Angeles, California

Posted 16 October 2015 - 08:18 PM

View PostCreator, on 16 October 2015 - 04:44 AM, said:

Someone voted they don't like the implementation. What don't you like and what could be changed in your opinion?

Probably some hater that wants to undermine you or is scared of mine craft computers killing him in his sleep.
I only see good applications in this as it saves people from doing any work seeing how lazy we are :P
Anyway wasn't me, I gave you a yes for both.

#64 Creator

    Mad Dash Victor

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

Posted 16 October 2015 - 08:54 PM

View Postburnin_aura, on 16 October 2015 - 08:18 PM, said:

View PostCreator, on 16 October 2015 - 04:44 AM, said:

Someone voted they don't like the implementation. What don't you like and what could be changed in your opinion?

Probably some hater that wants to undermine you or is scared of mine craft computers killing him in his sleep.
I only see good applications in this as it saves people from doing any work seeing how lazy we are :P
Anyway wasn't me, I gave you a yes for both.

Well, actually I was not afraid of some hater. I was rather curious if someone found something that could have been improved.

Anyways, thanks for the support.

#65 Creator

    Mad Dash Victor

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

Posted 17 October 2015 - 04:53 PM

Integrated AI into OmniOS so if anyone wants to use AI and an OS at the same time, download OmniOS. By the way, OmniOS also provides useless stuff as multitasking, inter-thread messaging and a custom FS. Why all of this? So you can use AI in various instances at the same time!

#66 Justy

  • Members
  • 210 posts
  • LocationCLGD

Posted 18 October 2015 - 05:13 AM

How would I create an AI which can learn to predict lua's psuedo math.random?

EDIT: No, Im not asking to be spoon-fed code, I just don't understand how this works and my current code just starts the output at 0.8 and slowly evens out to 1.0

Edited by justync7, 18 October 2015 - 05:18 AM.


#67 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 18 October 2015 - 07:34 AM

I guess you'd need to feed in inputs representing the seed and the number of math.random() calls made using it, and an expected output of whatever value that combination would produce.

#68 Justy

  • Members
  • 210 posts
  • LocationCLGD

Posted 18 October 2015 - 08:04 AM

View PostBomb Bloke, on 18 October 2015 - 07:34 AM, said:

I guess you'd need to feed in inputs representing the seed and the number of math.random() calls made using it, and an expected output of whatever value that combination would produce.
Tried this, theres no way to even get a number >1 from this api...

#69 Creator

    Mad Dash Victor

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

Posted 18 October 2015 - 08:32 AM

View Postjustync7, on 18 October 2015 - 08:04 AM, said:

View PostBomb Bloke, on 18 October 2015 - 07:34 AM, said:

I guess you'd need to feed in inputs representing the seed and the number of math.random() calls made using it, and an expected output of whatever value that combination would produce.
Tried this, theres no way to even get a number >1 from this api...

You can use binary.

By the way, you would need to train it at least a thousand time to make the output increase with a unit.

#70 Creator

    Mad Dash Victor

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

Posted 24 October 2015 - 03:00 PM

By the way I have an idea how to make TicTacToe work. I let it play normally. At the ned, if it won, I validate the moves, if not I don't.

#71 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 24 October 2015 - 11:09 PM

As I mentioned in your Tic-Tac-Toe thread, you'd be better off writing an AI that already plays perfectly, and having your NeuralNetwork watch its moves until it can match it.

That way, you'll be able to "validate" every game - you also won't be feeding it "bad" data from games which it technically won, but should have lost (that is to say, cases where the opponent lets it win).

#72 Creator

    Mad Dash Victor

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

Posted 24 October 2015 - 11:11 PM

Ok, so it should learns form a perfect min-max bot?

#73 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 24 October 2015 - 11:16 PM

If that's how you want it to end up playing, most certainly.

The "perfect" AI should play a fair few games against an AI that plays randomly. The idea is that the Network should be taught the best move for every possible board layout - if you pit the perfect AI against itself, the Network will never learn how to win!

Fortunately, what's "possible" will be limited somewhat by the perfect AI forcing the other player into a corner within a few moves.

#74 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 25 October 2015 - 01:01 PM

Btw, here is something interesting achieved with Neural Networks. (IMO)
http://soumith.ch/eyescream/
Do you think it would be possible to port that to CC? XD

#75 Creator

    Mad Dash Victor

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

Posted 25 October 2015 - 01:16 PM

If it can be done with a neural network, it can be done in CC.

#76 Lupus590

  • Members
  • 2,028 posts
  • LocationUK

Posted 03 November 2015 - 09:35 PM

Does this neural network only accept and output numbers? Or can I use chars/strings too?

Edited by Lupus590, 03 November 2015 - 09:35 PM.


#77 Creator

    Mad Dash Victor

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

Posted 03 November 2015 - 10:25 PM

The input can be Analoge, so you have to find a way to represent the string through a series of analogue signals. Or you transform it to binary, which would be more reasonable.

#78 Rougeminner

  • Members
  • 151 posts

Posted 09 November 2015 - 01:38 PM

Probably Incredibly stupid question warning!

Is this applicable to a turtle for AI Mining, sorry for the questions level of stupidity i am just now trying to get started in AI code and applications,

EDIT: NVMD didn't completely read entire forum page, someone already asked. i derped my bad

Edited by Rougeminner, 09 November 2015 - 02:08 PM.


#79 Creator

    Mad Dash Victor

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

Posted 09 November 2015 - 02:34 PM

Well, the question is "Is there a pattern and can it be learned?". If the answer is yes, then you can use AI, if not, as the case is with randomly generated ores, then no.

#80 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 09 November 2015 - 11:06 PM

View PostCreator, on 09 November 2015 - 02:34 PM, said:

Well, the question is "Is there a pattern and can it be learned?". If the answer is yes, then you can use AI, if not, as the case is with randomly generated ores, then no.

Ores aren't too randomly spread. There are certain possibilities for n-sized clusters to appear n-times per chunk. You could look that stuff up in the MC source.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users