public class SOMLibRegressInformation extends 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 LinkedHashMap<String,Double> |
dataHash |
private static Logger |
logger |
private double |
maxPrediction |
private double |
meanPrediction |
private double |
minPrediction |
private String |
regressionInformationFileName
The file name to read from.
|
Constructor and Description |
---|
SOMLibRegressInformation(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(String vectorname) |
private void |
readSOMLibRegressionInformationFile()
Reads a regression information file containing a header and class indices.
|
private void |
readTabSepRegressionInformationFile() |
private static final Logger logger
private String regressionInformationFileName
private LinkedHashMap<String,Double> dataHash
private double maxPrediction
private double minPrediction
private double meanPrediction
public SOMLibRegressInformation(String regressionInformationFileName) throws SOMToolboxException
readSOMLibRegressionInformationFile()
) and the tab separated file (
SOMLibClassInformation.readTabSepClassInformationFile()
).SOMToolboxException
private void readSOMLibRegressionInformationFile() throws IOException, SOMToolboxException
IOException
SOMToolboxException
private void readTabSepRegressionInformationFile() throws SOMToolboxException, IOException
SOMToolboxException
IOException
public void computeStats()
public double getPrediction(String vectorname)
public double getMaxPrediction()
public double getMeanPrediction()
public double getMinPrediction()