fonet icon indicating copy to clipboard operation
fonet copied to clipboard

Outputs only between 0 and 1

Open bcvery1 opened this issue 4 years ago • 2 comments

I'm trying to work out if this is intended behaviour, whatever data I train a network with, the output is always between 0 and 1, even if that does not match the training data.

Please see #1 as further explanation.

Have I misunderstood the scope of the networks? Is this behaviour expected? If I needed a network which was able to output a float of arbitrary size, is this possible with this package?

Many thanks

bcvery1 avatar Aug 02 '19 15:08 bcvery1

Hey, it's because this package at the moment uses the sigmoid function by default which is only capable of returning values in the range of 0 <= x <= 1. You can find more about the sigmoid function here.

I was thinking about adding more functions and make it optional which should be used, also a different could be set for each layer. Maybe it's the right time to add these features!

Fontinalis avatar Aug 07 '19 07:08 Fontinalis

Hey @Fontinalis, thanks for the quick response. Is this something you're looking to add in the near future? I wish I could contribute, but I don't know enough about the NN methods involved!

bcvery1 avatar Aug 13 '19 13:08 bcvery1