Learning pole structures of hadronic states using predictive uncertainty estimation