1. dmatrix -> matrix; 2. predict functions