Task-based Generation of Optimized Projection Sets using Differentiable Ranking