Supervised-Learning-Based Resource Allocation in Wireless Networks