implemented (bad) partial derivatives for single-hidden-layer nets