public abstract class GISModelWriter extends AbstractModelWriter
| Modifier and Type | Field and Description |
|---|---|
protected int |
CORRECTION_CONSTANT |
protected double |
CORRECTION_PARAM |
protected String[] |
OUTCOME_LABELS |
protected Context[] |
PARAMS |
protected String[] |
PRED_LABELS |
| Constructor and Description |
|---|
GISModelWriter(AbstractModel model) |
| Modifier and Type | Method and Description |
|---|---|
protected List<List<ComparablePredicate>> |
compressOutcomes(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 int CORRECTION_CONSTANT
protected double CORRECTION_PARAM
protected String[] PRED_LABELS
public GISModelWriter(AbstractModel model)
public void persist()
throws IOException
writeX() methods provided
by extending classes.
If you wish to create a GISModelWriter which uses a different structure, it
will be necessary to override the persist method in addition to
implementing the writeX() methods.
persist in class AbstractModelWriterIOExceptionprotected ComparablePredicate[] sortValues()
protected List<List<ComparablePredicate>> compressOutcomes(ComparablePredicate[] sorted)
Copyright © 2016 The Apache Software Foundation. All rights reserved.