- Create CSVRecordReader to hold customer churn data:
RecordReader recordReader = new CSVRecordReader(1,',');
- Add data to CSVRecordReader:
File file = new File("Churn_Modelling.csv");
recordReader.initialize(new FileSplit(file));
RecordReader recordReader = new CSVRecordReader(1,',');
File file = new File("Churn_Modelling.csv");
recordReader.initialize(new FileSplit(file));