Wireless network optimization method based on cognitive cycle using machine learning