public static void writeMlResultToFile(MultilabelResult result,File file) throws FileNotFoundException, IOException {
  ObjectOutputStream stream=new ObjectOutputStream(new FileOutputStream(file));
  stream.writeObject(result);
  stream.close();
}

public static void writeMlResultToFile ( MultilabelResult result , File file ) throws FileNotFoundException , IOException { ObjectOutputStream stream = new ObjectOutputStream ( new FileOutputStream ( file ) ) ; stream . writeObject ( result ) ; stream . close ( ) ; }
writes a file with all necessary information for evaluation .
