r/programmingmemes 14d ago

tITLES

Post image
306 Upvotes

43 comments sorted by

View all comments

Show parent comments

5

u/cowlinator 13d ago

They do not, because if/else is binary on/off, and the neuron activation function is a gradient.

0

u/ZEI_GAMES 13d ago

Well that depends on how you see it. This a methaphor we are talking about. In its simplest form both are conditional based outcomes. Be it binary, a gradient, or even multi dimensional.

2

u/cowlinator 13d ago

if-else's are all conditionals, but not all conditionals are if-else's

And i can't imagine a gradient activation function being described as "behaves like if-else's" since they have so little in common. Though I suppose that is a matter of opinion.

2

u/ZEI_GAMES 13d ago

if-else's are all conditionals, but not all conditionals are if-else's

This is literally my point. What they have in common their conditional based behavior. Not that they have the same capabilities.