|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.tuwien.ifs.somtoolbox.data.SOMLibRegressInformation
public class SOMLibRegressInformation
This class provides information about the real output value for the 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
.
Field Summary | |
---|---|
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 Summary | |
---|---|
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() ). |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Logger logger
private String regressionInformationFileName
private LinkedHashMap<String,Double> dataHash
private double maxPrediction
private double minPrediction
private double meanPrediction
Constructor Detail |
---|
public SOMLibRegressInformation(String regressionInformationFileName) throws SOMToolboxException
readSOMLibRegressionInformationFile()
) and the tab separated file (
SOMLibClassInformation.readTabSepClassInformationFile()
).
SOMToolboxException
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |