Fix sparsity_threshold automatic computation (simpler + explaination).