Machine Learning algorithms for resource management of HetNets and cellular-connected UAVs