Differentiable Spearman Correlation

A couple people have been trying this. Check out

and

I can’t find where I read it, but I believe the fast-soft-sort package’s Spearman function is only differentiable once, which would cause your None issue. You could try @mdo’s solution, which is to just use a matrix of ones as the Hessian.