public void getTrainingSet(){
        int i = 0;
        try {
            FileInputStream file = new FileInputStream(new File(xlsFileName));
            //Get the workbook instance for XLS file 
            HSSFWorkbook workbook = new HSSFWorkbook(file);
            //Get first sheet from the workbook
            HSSFSheet sheet = workbook.getSheetAt(0);
            //Iterate through each rows from first sheet
            Iterator<Row> rowIterator = sheet.iterator();
            
            while(rowIterator.hasNext()) {
                Row row = rowIterator.next();
                if(i == 0){
                    getAttLabels(row);
                    i++;
                }
                else
                {
                    getPattern(row,i-1);//Agregar el patron al conjunto de entrenamiento
                    i++;
                }
            }
            file.close();
            //FileOutputStream out = new FileOutputStream(new File(xlsFileName));
            //workbook.write(out);
            //out.close();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }