Re: JMLC and l2-svm.dml

2017-08-28 Thread Matthias Boehm
ad 1: Yes, you're right - this specific function with String input is indeed missing. You have a couple of choices here but the easiest way would be to create an input stream from your String via IOUtilFunctions.toInputStream which can be fed into convertToDoubleMatrix or convertToMatrix. The

Re: JMLC and l2-svm.dml

2017-08-28 Thread Federico Wachs
Matthias, thanks for replying in such short notice. A couple of things I wanted to know from your response: 1. conn.convertToDoubleMatrix(conn.readScript(model), rows, cols, "csv"). This takes in an InputStream and conn.readScript does not return that. Which API should I use instead? 2. pstmt =

Re: JMLC and l2-svm.dml

2017-08-25 Thread Federico Wachs
Nevermind. I actually found out that I could change the output to write to the model file from csv to text which actually writes the matrix. Thanks, On Fri, Aug 25, 2017 at 11:02 AM Federico Wachs < federico.wa...@sqlstream.com> wrote: > Hi all, > > I've been able to follow the steps showed

JMLC and l2-svm.dml

2017-08-25 Thread Federico Wachs
Hi all, I've been able to follow the steps showed here and I want to use the created model from JMLC. But when I try to load the model like this: *String dml =