public class SOMLibRegressInformation
extends java.lang.Object
InputData
input vectors.
The file format consists of a header
and the content as follows:
InputData.numVectors()
).
Alternatively, the file format can be more simple, and not contain any file header. Then, there is only a list of
lines with two tabulator-separated Strings
in the form of labelName regressionValue
.
Note: the file format is very similar to that of the SOMLibClassInformation
, which provides a continuous
output information for the input vector, in the form of categories/classes.
Modifier and Type | Field and Description |
---|---|
private java.util.LinkedHashMap<java.lang.String,java.lang.Double> |
dataHash |
private static java.util.logging.Logger |
logger |
private double |
maxPrediction |
private double |
meanPrediction |
private double |
minPrediction |
private java.lang.String |
regressionInformationFileName
The file name to read from.
|
Constructor and Description |
---|
SOMLibRegressInformation(java.lang.String regressionInformationFileName)
Creates a new class information object by trying to read the given file in both the versions with a file header (
readSOMLibRegressionInformationFile() ) and the tab separated file (
SOMLibClassInformation.readTabSepClassInformationFile() ). |
Modifier and Type | Method and Description |
---|---|
void |
computeStats() |
double |
getMaxPrediction() |
double |
getMeanPrediction() |
double |
getMinPrediction() |
double |
getPrediction(java.lang.String vectorname) |
private void |
readSOMLibRegressionInformationFile()
Reads a regression information file containing a header and class indices.
|
private void |
readTabSepRegressionInformationFile() |
private static final java.util.logging.Logger logger
private java.lang.String regressionInformationFileName
private java.util.LinkedHashMap<java.lang.String,java.lang.Double> dataHash
private double maxPrediction
private double minPrediction
private double meanPrediction
public SOMLibRegressInformation(java.lang.String regressionInformationFileName) throws SOMToolboxException
readSOMLibRegressionInformationFile()
) and the tab separated file (
SOMLibClassInformation.readTabSepClassInformationFile()
).SOMToolboxException
private void readSOMLibRegressionInformationFile() throws java.io.IOException, SOMToolboxException
java.io.IOException
SOMToolboxException
private void readTabSepRegressionInformationFile() throws SOMToolboxException, java.io.IOException
SOMToolboxException
java.io.IOException
public void computeStats()
public double getPrediction(java.lang.String vectorname)
public double getMaxPrediction()
public double getMeanPrediction()
public double getMinPrediction()