public void saveModel(String fileName) throws IOException {
  logger.info("Save Model to {} .....",fileName);
  numFeatuerBit=SLParameters.HASHING_MASK;
  ObjectOutputStream oos=new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(fileName)));
  oos.writeObject(this);
  oos.close();
  logger.info("Done!");
}

public void saveModel ( String fileName ) throws IOException { logger . info ( "Save Model to {} ....." , fileName ) ; numFeatuerBit = SLParameters . HASHING_MASK ; ObjectOutputStream oos = new ObjectOutputStream ( new BufferedOutputStream ( new FileOutputStream ( fileName ) ) ) ; oos . writeObject ( this ) ; oos . close ( ) ; logger . info ( "Done!" ) ; }
the function that is used to save the model into disk . this function just serialize the whole object into disk . you can modify the save / load behavior by overriding this function .
