read a csv file into a dataset . use the correct constructor : dataset ds = new recordreaderdatasetiterator rr , batchsize ; returns the data as follows : =========== input =================== 12.89 , 22.70 , 19.34 , 20.47 , 16.94 , 6.08 , 15.87 , 8.42 , 10.71 , 26.18 which is not the way the framework likes its data . this one : recordreaderdatasetiterator rr , batchsize , 1 , 1 , true ; returns =========== input =================== 12.89 , 19.34 , 16.94 , 15.87 , 10.71 ================= output ================== 22.70 , 20.47 , 6.08 , 8.42 , 26.18 this can be used as is for regression . concode_field_sep PlaceHolder placeHolder concode_field_sep MultiLayerNetwork fitStraightline concode_elem_sep void main concode_elem_sep void plotDataset
DataSet function ( String arg0 ) { int loc0 = 1000 ; RecordReader loc1 = new CSVRecordReader ( ) ; loc1 . initialize ( new FileSplit ( new File ( arg0 ) ) ) ; DataSetIterator loc2 = new RecordReaderDataSetIterator ( loc1 , loc0 , 1 , 1 , true ) ; return loc2 . next ( ) ; }