The optimal allocation of resources in wireless communication systems is formulated as a machine learning problem. These two problems are shown to be more similar to each other than they look: Optimal allocation of power and bandwidth across fading states is mathematically equivalent to optimal design of a classifier or regressor over a dataset distribution. Learning techniques produce data driven heuristic solutions and operate without knowledge of systems’ models.