Text this: Outage Performance and Novel Loss Function for an ML-Assisted Resource Allocation: An Exact Analytical Framework