public class PlainTextPerceptronModelWriter extends PerceptronModelWriter
Constructor and Description |
---|
PlainTextPerceptronModelWriter(AbstractModel model,
java.io.BufferedWriter bw)
Constructor which takes a PerceptronModel and a BufferedWriter and prepares
itself to write the model to that writer.
|
PlainTextPerceptronModelWriter(AbstractModel model,
java.io.File f)
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() |
void |
writeDouble(double d) |
void |
writeInt(int i) |
void |
writeUTF(java.lang.String s) |
persist
public PlainTextPerceptronModelWriter(AbstractModel model, java.io.File f) throws java.io.IOException, java.io.FileNotFoundException
model
- The PerceptronModel which is to be persisted.f
- The File in which the model is to be persisted.java.io.IOException
java.io.FileNotFoundException
public PlainTextPerceptronModelWriter(AbstractModel model, java.io.BufferedWriter bw)
model
- The PerceptronModel which is to be persisted.bw
- The BufferedWriter which will be used to persist the model.public void writeUTF(java.lang.String s) throws java.io.IOException
writeUTF
in class AbstractModelWriter
java.io.IOException
public void writeInt(int i) throws java.io.IOException
writeInt
in class AbstractModelWriter
java.io.IOException
public void writeDouble(double d) throws java.io.IOException
writeDouble
in class AbstractModelWriter
java.io.IOException
public void close() throws java.io.IOException
close
in class AbstractModelWriter
java.io.IOException
Copyright © 2010 - 2020 Adobe. All Rights Reserved