An Efficient Machine Learning Based Precoding Algorithm for Millimeter-Wave Massive MIMO