Sigmoid neuron class doubt

In sigmoid neuron class…i don’t quite understand why we use initialise…can anybody help me out

Hi Shubham,
It’s a general practice to use a separate function named initialise to get started with declaration of all variables. It will work otherwise as well, but it’s done just in case to make the code look clean and tidy.

1 Like

so in __init function, should we just initialise with None as we are doing in SN? but in FFNnetwork, we are initialising twice, once in _init and then in fit(), that too with same value[random.randn()]. Sorry I asked the same thing in another post also.