Uses the given file path to load a data set from an ARFF file. @param file the path to the ARFF file to load @return the data set from the ARFF file, or null if the file could not be loaded.
(File file)
| 32 | * @return the data set from the ARFF file, or null if the file could not be loaded. |
| 33 | */ |
| 34 | public static SimpleDataSet loadArffFile(File file) |
| 35 | { |
| 36 | try |
| 37 | { |
| 38 | return loadArffFile(new FileReader(file)); |
| 39 | } |
| 40 | catch (FileNotFoundException ex) |
| 41 | { |
| 42 | Logger.getLogger(ARFFLoader.class.getName()).log(Level.SEVERE, null, ex); |
| 43 | return null; |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * Uses the given reader to load a data set assuming it follows the ARFF |
nothing calls this directly
no test coverage detected