Why isn't my sigmoid formula working?

Get help using Construct 2

Post » Wed Feb 01, 2017 5:48 am

Why can't I get a sigmoid function to work?

Every tick, the value of an instance variable is set to

1/(1+2.718^health)

Health is a global variable that changes every tick and is normally greater than 10,000

Is my sigmoid formula wrong? It's returning the number 0

I think the number is EXTREMELY small and is being rounded down to 0, but isnt the point of the sigmoid function to always produce a number between 0 and 1....

I'm trying to make a simple artificial neural network...
B
22
S
14
G
16
Posts: 16
Reputation: 10,437

Post » Wed Feb 01, 2017 5:52 am

I think perhaps maybe I've solved it.

It should be negative health.
B
22
S
14
G
16
Posts: 16
Reputation: 10,437


Return to How do I....?

Who is online

Users browsing this forum: MassimoF, Microbex and 30 guests