@ Override public DataSet reshape ( int rows , int cols ) { DataSet ret = new DataSet ( getFeatures ( ) . reshape ( new long [ ] { rows , cols } ) , getLabels ( ) ) ; return ret ; }
Reshapes the input in to the given rows and columns