|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjncc20.ResearchUtils
public final class ResearchUtils
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 |
---|
public ResearchUtils()
Method Detail |
---|
public static void AnalyzePredictionsFileMultipleNCCs(java.io.BufferedWriter out, java.lang.String Filename, int ProvidedNumClasses, boolean RawOutput)
public static void AnalyzePredictionsNbcNcc(java.io.BufferedWriter out, java.lang.String Filename, int MaxNumFeatures, int NumClassesOfDataset)
private static int[] evaluateCredalPrediction(int ActualClass, int[] CredalPrediction)
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.
public static void PredictionsToFileNbcMultipleNccs(java.lang.String PredFile, int[] NBCPredictions, int[][] NCCMARPredictions, int[][] NCCPredictions, int[][] NCCNONMARPredictions, java.util.ArrayList<int[]> TestingSet, int NumClasses)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |