# Talk:Neural Network Vectorization

### From Ufldl

In the final code section, it reads:

% Sparsity Penalty Delta

sparsity_delta = - rho ./ rho_hat + (1 - rho) ./ rho_hat;

Shouldn't the last term's denominator be (1 - rho_hat)?

---

jngiam: Thats right, thanks for pointing that out; we've since fixed it.