I’m getting a type error named
ufunc ‘isfinite’ not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule “safe”
It looks to me like your sigmoid() function is not returning the correct values. It should not return “None”.
Thank you for that I found my mistake