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

#41 Creator

    Mad Dash Victor

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

Posted 11 October 2015 - 08:55 PM

Don't be so serious. It's only a joke.

#42 gollark8

  • Members
  • 207 posts

Posted 11 October 2015 - 09:19 PM

View PostCreator, on 11 October 2015 - 08:55 PM, said:

Don't be so serious. It's only a joke.
But how can I use an API if its errors are meaningless?

#43 Creator

    Mad Dash Victor

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

Posted 11 October 2015 - 09:22 PM

Fine, I'll change it tomorrow. Actually I won't. Haxor just said why.

Edited by Creator, 11 October 2015 - 09:32 PM.


#44 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 11 October 2015 - 09:30 PM

View Postgollark8, on 11 October 2015 - 09:19 PM, said:

View PostCreator, on 11 October 2015 - 08:55 PM, said:

Don't be so serious. It's only a joke.
But how can I use an API if its errors are meaningless?

If you would've looked at the source, you would've seen that this error only occurs on one line, and only under really specific circumstances so it actually has a meaning. It's just not a "Oh, you need x instead of y when calling this function" but "Hey, here's a joke for you because I only appear when you mess x up, so I don't have to inform you about the details" kind of error message.

assert(#inputVals == #m_layers[1],"Mate, you are coding like a girl! Just joking, girls can code too... not like you!")


#45 Creator

    Mad Dash Victor

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

Posted 11 October 2015 - 09:32 PM

Exactly. There is only so much you can mess up without messing up Lua itself. Like an error because you indexed nil.

#46 Lupus590

  • Members
  • 1,965 posts
  • LocationUK

Posted 11 October 2015 - 09:46 PM

Still useful error messages help a lot, by all means tag the joke on the end but make it so that I don't have to search the source for the line that flags the error and then try and decode what would cause that line. Just tell me what I did wrong and what I should be doing, then you can insult me and over half of the human race.

Actually your joke could be taken as sexist, you may want to be careful about that. On a related note: you may not want to insult your users, just saying.

Edited by Lupus590, 11 October 2015 - 09:51 PM.


#47 Creator

    Mad Dash Victor

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

Posted 11 October 2015 - 10:03 PM

I do say that girls can code and that the only person who can't is you. However, I am sorry if I offended anyone. And will add what you did wrong.

#48 Creator

    Mad Dash Victor

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

Posted 12 October 2015 - 07:56 PM

New version 1.1:
- adds the ability to transform the Neural Network into a table.
- adds the ability to create a neural network from a table.

How to:

Serialize:
myNet = Net({2,4,1})
--train it
serialized = myNet.serialize()
Serialized is a table that can be written to a file.

Unserialize:
myNet = Unserialize(serialized)
myNet is a valid neural network.

#49 gollark8

  • Members
  • 207 posts

Posted 12 October 2015 - 09:22 PM

View PostCreator, on 12 October 2015 - 07:56 PM, said:

New version 1.1:
- adds the ability to transform the Neural Network into a table.
- adds the ability to create a neural network from a table.

How to:

Serialize:
myNet = Net({2,4,1})
--train it
serialized = myNet.serialize()
Serialized is a table that can be written to a file.

Unserialize:
myNet = Unserialize(serialized)
myNet is a valid neural network.

But does it have error messages that don't make you dig through the source of the API in an attempt to find out what's wrong?

Edited by gollark8, 12 October 2015 - 09:22 PM.


#50 Creator

    Mad Dash Victor

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

Posted 13 October 2015 - 04:28 AM

View Postgollark8, on 12 October 2015 - 09:22 PM, said:

View PostCreator, on 12 October 2015 - 07:56 PM, said:

New version 1.1:
- adds the ability to transform the Neural Network into a table.
- adds the ability to create a neural network from a table.

How to:

Serialize:
myNet = Net({2,4,1})
--train it
serialized = myNet.serialize()
Serialized is a table that can be written to a file.

Unserialize:
myNet = Unserialize(serialized)
myNet is a valid neural network.

But does it have error messages that don't make you dig through the source of the API in an attempt to find out what's wrong?

Just let it go with these error messages. I mean, should have been more precise about the only error message given to the user, but I hope you won't be posting this all the time.

#51 Creator

    Mad Dash Victor

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

Posted 13 October 2015 - 09:07 PM

I fixed a small issue with serialize and unserialize. However, I will be posting the new code tomorrow because of "it's 00:06 o'clock" reasons.

#52 Creator

    Mad Dash Victor

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

Posted 14 October 2015 - 10:06 PM

Hi guys I just want to give you a quick glimpse of the first official program that uses AI: TicTacToe!

pastebin:
pastebin get TFxkELib TTT

To the moderators: please do not create a new thread for the game. I will do it myself tomorow, I promise. Thank you for undersatnding me.

#53 FUNCTION MAN!

  • Members
  • 292 posts

Posted 15 October 2015 - 12:04 AM

It doesn't seem very adaptive. I've won like 20 times with the same combination: 1, 2, 3.

#54 Creator

    Mad Dash Victor

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

Posted 15 October 2015 - 04:37 AM

I know. That is an issue I am working on. However, it does learn.

#55 Creator

    Mad Dash Victor

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

Posted 15 October 2015 - 06:29 AM

Today, I will modify it so that it plays against a random player and learns automatically.

#56 Waitdev_

  • Members
  • 432 posts
  • LocationWherever you want me to be

Posted 15 October 2015 - 09:44 AM

cleverbot anyone? please?

do it for etho?

#57 Creator

    Mad Dash Victor

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

Posted 15 October 2015 - 09:53 AM

Cleverbot? Do you know the size of the database you'd need? And the size of the neural network? And the computing power?

#58 Andrew2060

  • Members
  • 109 posts
  • LocationLos Angeles, California

Posted 15 October 2015 - 11:27 AM

Hey,

Well I looked through your entire topic and many others regarding AI Programs.
I understand the entire concept of how these things function and work now too.
I really like yours though.

I was hoping to find a way to give a single computer full access of my defensive and offensive networks.
Without any manual input because it seems that my friends can't stop fiddling with my submarines PC's.

So I mean this is how I think mine would work, correct me if I'm wrong please.

1. Boot up and handshake with both offensive and defensive systems networks. (Ping-pong responses).
2. Record Data based on friendly/enemy missile interceptions, enemy launch counts, launch frequency etc.
3. Use equations and filters to narrow down the possible locations of enemy missile silos.
4. Assess which silo is more dangerous by judging their launch count and average missile type.
5. Possibly probe silo by firing test missile and await for its interception ( interception would be confirmation silo exists).
6. Continue analysing data even if a threat is imminent, (defense system will work on autopilot until bypassed byPC).
7. Create an effective database which can be used for target selection by the offensive system.
8. Create an effective database that can be used to prioritise defensive counter measures.
9. Maybe instruct personnel on options to take? Or make decisions on its own.

I mean I know what to do in this but I'm not the best with databases or well equations.

So basically crap tons of data are organised and analysed, then used to interpret threats.

Edited by burnin_aura, 15 October 2015 - 11:28 AM.


#59 Creator

    Mad Dash Victor

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

Posted 15 October 2015 - 11:46 AM

In order to treason the network you d need to provide possible input and provide the according output. When the real threat comes the network will be trained and it will work on it's own.

#60 Andrew2060

  • Members
  • 109 posts
  • LocationLos Angeles, California

Posted 15 October 2015 - 12:04 PM

True or it could just sit and learn from actual threats until say autopilot is disabled, then it would learn and respond.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users