Updated file with loss function
Cobweb with sigmoid activation, updated version with loss function