This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-06-25 18:57:24

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Neural Network Help? [Advanced Programming]

How does a neural network perform a non-linear function on its inputs? Because the way I see it: Say your neural network looks like this (A, B, C, D, E as the numbers, A, B are inputs, E is output):

Code:

A B
|X|
C D
 V
 E

And the weights are ac, ad, bc, bd, ce, de. (ex. AC means weight of A on C or whatever)
C would equal ac*A+bc*B
D would equal ad*A+bd*B
Right?
Then E would equal ce*C+de*D
Substituting the resuts above for C and D, we get
ce*(ac*A+bc*B)+de*(ad*A+bd*B).
Simplifying:
ce*ac*A+ce*bc*B+de*ad*A+de*bd*B
Which also equals to (undo distributive property):
A*(ce*ac+de*ad)+B*(ce*bc+de*bd)
Since the weights don't change, we can think of them as all constants:
A*C1+B*C2
This means that E is a linear function of A and B.

Where is this wrong? I know neural nets are more interesting than this...


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#2 2012-06-26 12:40:51

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Neural Network Help? [Advanced Programming]

Bump... Anyone?
?-mv(ckp7(e2ziep1oxk81'g2(38rmy/zsmj6.nll!1-.opy s50gmdztl37e9o0c6y
Encoding is encoder-decoder.


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#3 2012-06-26 17:50:57

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: Neural Network Help? [Advanced Programming]

I doupt anyone can help you here, I would ask this on a subject specific forum dedicated to this topic.  smile


http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#4 2012-06-28 08:37:29

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Neural Network Help? [Advanced Programming]

Bump.


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#5 2012-06-28 10:46:54

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Neural Network Help? [Advanced Programming]

We're not all that smart q_q.


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#6 2012-06-28 10:57:09

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Neural Network Help? [Advanced Programming]

bbbeb wrote:

We're not all that smart q_q.


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#7 2012-06-29 09:13:06

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Neural Network Help? [Advanced Programming]

Bump... Anyone?


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#8 2012-06-29 10:44:41

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Neural Network Help? [Advanced Programming]

You could ask ohaiderstudios, he's programming a neural net in Python. He might be able to help you.  smile

Offline

 

#9 2012-06-29 11:05:51

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Neural Network Help? [Advanced Programming]

How would I ask him?


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#10 2012-06-29 11:32:47

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: Neural Network Help? [Advanced Programming]

Maybe in the comments on one of his/her projects or something.


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#11 2012-06-29 14:50:57

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Neural Network Help? [Advanced Programming]

Oh hey, cool! I was just searching 'neural net,' and found this! I'm flattered that you should recommend me, Magnie.

Unfortunately, while I can follow the logic your question is using, I don't see anything wrong with it. The only thing I can think of is that although you said,

Molybdenum wrote:

Since the weights don't change, we can think of them as all constants:

I think that in neural nets the weights do change (feel free to correct me if I'm wrong). But other than that, I'm not smart enough to help you either  tongue

Last edited by ohaiderstudios (2012-06-29 15:01:11)


Fork Clamor on GitHub!

Offline

 

#12 2012-06-29 15:30:52

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Neural Network Help? [Advanced Programming]

ohaiderstudios wrote:

Oh hey, cool! I was just searching 'neural net,' and found this! I'm flattered that you should recommend me, Magnie.

Unfortunately, while I can follow the logic your question is using, I don't see anything wrong with it. The only thing I can think of is that although you said,

Molybdenum wrote:

Since the weights don't change, we can think of them as all constants:

I think that in neural nets the weights do change (feel free to correct me if I'm wrong). But other than that, I'm not smart enough to help you either  tongue

Well, I thought that each neural net had a certain weight for each link, and each neural net held them constant when "processing" the data, but when learning, it changes the weights based on the data/relationships it has learned.

{Grr... 180 second rule. Maybe a neural net can learn how to get used to it  tongue }


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#13 2012-06-29 16:04:38

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Neural Network Help? [Advanced Programming]

Molybdenum wrote:

ohaiderstudios wrote:

Oh hey, cool! I was just searching 'neural net,' and found this! I'm flattered that you should recommend me, Magnie.

Unfortunately, while I can follow the logic your question is using, I don't see anything wrong with it. The only thing I can think of is that although you said,

Molybdenum wrote:

Since the weights don't change, we can think of them as all constants:

I think that in neural nets the weights do change (feel free to correct me if I'm wrong). But other than that, I'm not smart enough to help you either  tongue

Well, I thought that each neural net had a certain weight for each link, and each neural net held them constant when "processing" the data, but when learning, it changes the weights based on the data/relationships it has learned.

{Grr... 180 second rule. Maybe a neural net can learn how to get used to it  tongue }

Yeah, that would be correct, I guess I just misunderstood what you meant.


Fork Clamor on GitHub!

Offline

 

Board footer