Machine Learning-Based Full Duplex Communications and Cognitive Radio Networks