Package org.aksw.palmetto.evaluate
Class SingleDimensionSummarizer
- java.lang.Object
-
- org.aksw.palmetto.evaluate.SingleDimensionSummarizer
-
public class SingleDimensionSummarizer extends Object
Generates summaries for single dimensions. It assumes that the data is a CSV file with the following positions:- 0: Probability estimation type
- 1: Window size (or empty if no window)
- 2: Segmentation type
- 3: Indirect measure type (or empty)
- 4: Gamma value of the indirect measure type (or empty)
- 5: Direct measure type
- 6: Aggregation type
- 7+: Correlation values for datasets
- last: Average correlation value
- Author:
- Michael Röder (michael.roeder@uni-paderborn.de)
-
-
Field Summary
Fields Modifier and Type Field Description protected static intCSV_LINE_CORR_AVGprotected static intCSV_LINE_CORR_START
-
Constructor Summary
Constructors Constructor Description SingleDimensionSummarizer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private doublecalculateLeftOutCorrelation(CoherenceValue coherence, int leftOutId, int startCorrValues, int numberOfDatasets, double averageValue)static voidmain(String[] args)private voidprintCoherence(CoherenceValue coherenceValues, String prefix, PrintStream pout)private voidprintResults(Map<String,AbsoluteCoherenceValues> results, File outputDirectory, String outputFileName)voidrun(File inputFile, File outputDirectory, String[] datasetNames)protected voidupdateMap(AbsoluteCoherenceValues newCoherence, Map<String,AbsoluteCoherenceValues> bestResultsMap, String key)
-
-
-
Field Detail
-
CSV_LINE_CORR_START
protected static final int CSV_LINE_CORR_START
- See Also:
- Constant Field Values
-
CSV_LINE_CORR_AVG
protected static final int CSV_LINE_CORR_AVG
- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(String[] args) throws IOException
- Throws:
IOException
-
run
public void run(File inputFile, File outputDirectory, String[] datasetNames) throws IOException
- Throws:
IOException
-
calculateLeftOutCorrelation
private double calculateLeftOutCorrelation(CoherenceValue coherence, int leftOutId, int startCorrValues, int numberOfDatasets, double averageValue)
-
updateMap
protected void updateMap(AbsoluteCoherenceValues newCoherence, Map<String,AbsoluteCoherenceValues> bestResultsMap, String key)
-
printResults
private void printResults(Map<String,AbsoluteCoherenceValues> results, File outputDirectory, String outputFileName) throws IOException
- Throws:
IOException
-
printCoherence
private void printCoherence(CoherenceValue coherenceValues, String prefix, PrintStream pout)
-
-