Re: LogisticModelParameters#saveTo(OutputStream) generates an empty file

2011-06-06 Thread Lance Norskog
However, it would be great to have a browser program that poked around a Sequence file and summarized the types etc. On Mon, Jun 6, 2011 at 7:50 AM, Svetlomir Kasabov wrote: > Now I understand, why the model is persisted this way :). > > Thanks. > > > Am 06.06.2011 16:45, schrieb Ted Dunning: >>

Re: LogisticModelParameters#saveTo(OutputStream) generates an empty file

2011-06-06 Thread Svetlomir Kasabov
Now I understand, why the model is persisted this way :). Thanks. Am 06.06.2011 16:45, schrieb Ted Dunning: No. That only works for toy-sized models. For production scale models, the XML representation can reach hundreds of megabytes. That isn't human readable in any case, XML or no. That

Re: LogisticModelParameters#saveTo(OutputStream) generates an empty file

2011-06-06 Thread Ted Dunning
No. That only works for toy-sized models. For production scale models, the XML representation can reach hundreds of megabytes. That isn't human readable in any case, XML or no. That also utterly kills reload performance. On Mon, Jun 6, 2011 at 7:34 AM, Svetlomir Kasabov < skasa...@smail.inf.fh

Re: LogisticModelParameters#saveTo(OutputStream) generates an empty file

2011-06-06 Thread Svetlomir Kasabov
Thanks for the reply Ted, my application is a test application which predicts the probability that a patient has a cancer. I use only two predictors and have only 12 training examples. It seems to me that LogisticModelparameters persists the logistic regression model as a binary file (somet

Re: LogisticModelParameters#saveTo(OutputStream) generates an empty file

2011-06-06 Thread Ted Dunning
Svetlomir, Can you say more about your application? Would it be possible to move to using the ModelSerialization style? The LogisticModelParameters style is fairly limited insofar as what it can do. On Thu, Jun 2, 2011 at 5:01 PM, Svetlomir Kasabov < skasa...@smail.inf.fh-brs.de> wrote: > Hell

LogisticModelParameters#saveTo(OutputStream) generates an empty file

2011-06-02 Thread Svetlomir Kasabov
Hello, since I updated my trunk version of Mahout today, I get an empty file for the model when executing this code: /OutputStream modelOutput = new FileOutputStream(LOGISTIC_MODEL); try { this.lmp.saveTo(modelOutput); } finally { modelOutput.close(); }