new matrix for machine learning