public abstract class PerceptronModelWriter extends AbstractModelWriter
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
OUTCOME_LABELS |
protected Context[] |
PARAMS |
protected String[] |
PRED_LABELS |
| Constructor and Description |
|---|
PerceptronModelWriter(AbstractModel model) |
| Modifier and Type | Method and Description |
|---|---|
protected List<List<ComparablePredicate>> |
computeOutcomePatterns(ComparablePredicate[] sorted) |
void |
persist()
Writes the model to disk, using the
writeX() methods
provided by extending classes. |
protected ComparablePredicate[] |
sortValues() |
close, writeDouble, writeInt, writeUTFprotected Context[] PARAMS
protected String[] OUTCOME_LABELS
protected String[] PRED_LABELS
public PerceptronModelWriter(AbstractModel model)
protected ComparablePredicate[] sortValues()
protected List<List<ComparablePredicate>> computeOutcomePatterns(ComparablePredicate[] sorted)
public void persist()
throws IOException
writeX() methods
provided by extending classes.
If you wish to create a PerceptronModelWriter which uses a different
structure, it will be necessary to override the persist method in
addition to implementing the writeX() methods.
persist in class AbstractModelWriterIOExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.