|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.georgetown.gucs.experiment.Trial
edu.georgetown.gucs.experiment.ParameterSearchTrial
public class ParameterSearchTrial
The ParameterSearchTrial class is the Trial class without the database back-end.
Field Summary | |
---|---|
static int |
FALSE_NEGATIVE
|
static int |
FALSE_POSITIVE
|
static int |
FSCORE
|
static int |
PRECISION
|
static int |
RECALL
|
static int |
TRUE_NEGATIVE
|
static int |
TRUE_POSITIVE
|
Fields inherited from class edu.georgetown.gucs.experiment.Trial |
---|
comparisonType, dataset, datasetFiles, datasetPath, dictionary, dictionaryCountNotPercent, dictionarySetting, experiment, fingerprinter, fingerprintIDfingerprintHash, fingerprintIDManglerIDHash, language, manglerIDs, manglerSettings, matcher, matcherParameter, maxIDF, minIDF, random, randomSeed, sampleCountNotPercent, sampleSetting, tokenizers |
Constructor Summary | |
---|---|
ParameterSearchTrial(java.lang.String newDataset)
Constructor |
Method Summary | |
---|---|
void |
doComparisons()
Compares the mangled and unmangled fingerprints to each other. |
java.util.TreeMap<java.lang.String,java.lang.Double[]> |
getManglerResults()
Sleeps until the trial is finished and then returns the results for each mangler. |
void |
getTrialResults()
Computes the precision, recall, and f-score for each mangler. |
int |
runTrial()
|
protected void |
takeFingerprints(java.lang.String manglerSettingString,
java.util.Iterator<java.io.File> files,
java.lang.Boolean unmangled)
Takes mangled or unmangled fingerprints for each file in the given file iterator. |
Methods inherited from class edu.georgetown.gucs.experiment.Trial |
---|
createDictionaryFromDirectory, createDictionaryFromFileLister, getTrialParameters, printParameters, run, sanityCheckParameters, setComparison, setDatasetFiles, setDatasetPath, setDictionaryCountNotPercent, setDictionaryLanguage, setDictionarySetting, setFingerprinter, setFingerprinter, setManglerSettings, setMatcher, setMatcher, setMatcherScore, setMaxIDF, setMinIDF, setRandomSeed, setSampleCountNotPercent, setSampleSetting, setTokenizerList, showManglerSetting |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TRUE_POSITIVE
public static final int FALSE_POSITIVE
public static final int TRUE_NEGATIVE
public static final int FALSE_NEGATIVE
public static final int PRECISION
public static final int RECALL
public static final int FSCORE
Constructor Detail |
---|
public ParameterSearchTrial(java.lang.String newDataset)
newDataset
- String of the dataset to be used in this trial.Method Detail |
---|
protected void takeFingerprints(java.lang.String manglerSettingString, java.util.Iterator<java.io.File> files, java.lang.Boolean unmangled)
takeFingerprints
in class Trial
manglerSettingString
- String containing the mangler settings to use if unmangled is set to false.files
- Iteratorunmangled
- Boolean for whether to mangle the files before fingerprinting them.public void doComparisons()
doComparisons
in class Trial
public void getTrialResults()
public java.util.TreeMap<java.lang.String,java.lang.Double[]> getManglerResults()
getManglerResults
in class Trial
public int runTrial()
runTrial
in class Trial
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |