Machine Learning-Enabled Resource Allocation For Underlay Cognitive Radio Networks