public static List < List < Writable > > toRecords ( DataSet dataSet ) { if ( isClassificationDataSet ( dataSet ) ) { return getClassificationWritableMatrix ( dataSet ) ; } else { return getRegressionWritableMatrix ( dataSet ) ; } }
Convert a DataSet to a matrix