jncc20
Class ResearchUtils

java.lang.Object
  extended by jncc20.ResearchUtils

public final class ResearchUtils
extends java.lang.Object

RESEARCH FEATURE, NOT TO BE RELEASED


Constructor Summary
ResearchUtils()
           
 
Method Summary
static void AnalyzePredictionsFileMultipleNCCs(java.io.BufferedWriter out, java.lang.String Filename, int ProvidedNumClasses, boolean RawOutput)
          RESEARCH FEATURE NOT TO BE RELEASED
static void AnalyzePredictionsNbcNcc(java.io.BufferedWriter out, java.lang.String Filename, int MaxNumFeatures, int NumClassesOfDataset)
          RESEARCH FEATURE, NOT TO BE RELEASED
private static int[] evaluateCredalPrediction(int ActualClass, int[] CredalPrediction)
          Evaluates a credal prediction against the actual class and then returns an array of answers about its precision and accuracy.
static void PredictionsToFileNbcMultipleNccs(java.lang.String PredFile, int[] NBCPredictions, int[][] NCCMARPredictions, int[][] NCCPredictions, int[][] NCCNONMARPredictions, java.util.ArrayList<int[]> TestingSet, int NumClasses)
          Dumps to file the predictions issued by NBC and multiples NCCs (either during CV or testing set classification).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResearchUtils

public ResearchUtils()
Method Detail

AnalyzePredictionsFileMultipleNCCs

public static void AnalyzePredictionsFileMultipleNCCs(java.io.BufferedWriter out,
                                                      java.lang.String Filename,
                                                      int ProvidedNumClasses,
                                                      boolean RawOutput)
RESEARCH FEATURE NOT TO BE RELEASED


AnalyzePredictionsNbcNcc

public static void AnalyzePredictionsNbcNcc(java.io.BufferedWriter out,
                                            java.lang.String Filename,
                                            int MaxNumFeatures,
                                            int NumClassesOfDataset)
RESEARCH FEATURE, NOT TO BE RELEASED


evaluateCredalPrediction

private static int[] evaluateCredalPrediction(int ActualClass,
                                              int[] CredalPrediction)
Evaluates a credal prediction against the actual class and then returns an array of answers about its precision and accuracy.

In particular: pos. 0: precise (0 or 1); pos1: imprecise(0 or 1); pos 2: accurate(0 or 1); pos.3: set-accurate(0 or 1); pos.4: outputsize. Clearly, reading the accurate field only makes sense if precise, and readgin set-accurate only makes sense if imprecise.


PredictionsToFileNbcMultipleNccs

public static void PredictionsToFileNbcMultipleNccs(java.lang.String PredFile,
                                                    int[] NBCPredictions,
                                                    int[][] NCCMARPredictions,
                                                    int[][] NCCPredictions,
                                                    int[][] NCCNONMARPredictions,
                                                    java.util.ArrayList<int[]> TestingSet,
                                                    int NumClasses)
Dumps to file the predictions issued by NBC and multiples NCCs (either during CV or testing set classification). It produces a file which contains the actual class, a number of columns equal to the number of classes (containing either the outputted class, or 6666 to mean that not all classes have been outputted by NCC), and finally the NBC prediction