Learning action selection strategies in complex social systems