File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
swan-pipeline/src/main/java/de/fraunhofer/iem/swan/util Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -276,15 +276,15 @@ public static String getClassName(Instances instances) {
276276 */
277277 public static String exportInstancesToArff (Instances instances ) {
278278 ArffSaver saver = new ArffSaver ();
279- String categoryName = getClassName (instances );
280279
281280 if (SwanPipeline .options .isExportArffData ()) {
282281 // Save arff data.
283282
284283 saver .setInstances (instances );
285284
285+
286286 try {
287- String arffFile = SwanPipeline .options .getOutputDir () + File .separator + "arff-data" + File .separator + categoryName + "-methods-dataset .arff" ;
287+ String arffFile = SwanPipeline .options .getOutputDir () + File .separator + "arff-data" + File .separator + instances . relationName () + ".arff" ;
288288 saver .setFile (new File (arffFile ));
289289 saver .writeBatch ();
290290 } catch (IOException e ) {
You can’t perform that action at this time.
0 commit comments