The high-yield optical wireless network (OWN) is a promising framework to strengthen 5G and 6G mobility. In addition, high direction and narrow bandwidth-based laser beams are enormously noteworthy for high data transmission over standard optical fibers. Therefore, in this paper, the performance of a vertical cavity surface emitting laser (VCSEL) is evaluated using the machine learning (ML) technique, aiming to purify the optical beam and enable OWN to support high-speed, multi-user data transmission. The ML technique is applied on a designed VCSEL array to optimize paths for DC injection, AC signal modulation, and multiple-user transmission. The mathematical model of VCSEL narrow beam, OWN, and energy loss through nonlinear interference in an optical wireless network is studied. In addition, the mathematical model is then affirmed with a simulation model following the bit error rate (BER), the laser power, the current, and the fiber-length performance matrices . The results estimations declare that the presented methodology offers a narrow beam of VCSEL, mitigating nonlinear interference in OWN and increasing energy efficiency.