A fairly simple non-linear function , the sigmoid function such as the logistic function also has an easily calculated derivative , which can be important when calculating the weight updates in the network .