Ranking proteins with reinforcement learning