Fast Machine Learning Method with Vector Embedding on Orthonormal Basis and Spectral Transform