read trainmatrix