Hydra: Automatically Configuring Algorithms for Portfolio-Based Selection