@Deprecated public class PlainTextPerceptronModelWriter extends PerceptronModelWriter
| Constructor and Description |
|---|
PlainTextPerceptronModelWriter(AbstractModel model,
BufferedWriter bw)
Deprecated.
Constructor which takes a PerceptronModel and a BufferedWriter and prepares
itself to write the model to that writer.
|
PlainTextPerceptronModelWriter(AbstractModel model,
File f)
Deprecated.
Constructor which takes a PerceptronModel and a File and prepares itself to
write the model to that file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
|
void |
writeDouble(double d)
Deprecated.
|
void |
writeInt(int i)
Deprecated.
|
void |
writeUTF(String s)
Deprecated.
|
persistpublic PlainTextPerceptronModelWriter(AbstractModel model, File f) throws IOException
model - The PerceptronModel which is to be persisted.f - The File in which the model is to be persisted.IOExceptionpublic PlainTextPerceptronModelWriter(AbstractModel model, BufferedWriter bw)
model - The PerceptronModel which is to be persisted.bw - The BufferedWriter which will be used to persist the model.public void writeUTF(String s) throws IOException
writeUTF in class AbstractModelWriterIOExceptionpublic void writeInt(int i)
throws IOException
writeInt in class AbstractModelWriterIOExceptionpublic void writeDouble(double d)
throws IOException
writeDouble in class AbstractModelWriterIOExceptionpublic void close()
throws IOException
close in class AbstractModelWriterIOExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.