Module es.upm.fi.cig.multictbnc
Class ExcelExperimentsWriter
java.lang.Object
es.upm.fi.cig.multictbnc.writers.performance.MetricsWriter
es.upm.fi.cig.multictbnc.writers.performance.ExcelExperimentsWriter
Allows writing the results of the experiments in an Excel file.
-
Constructor Summary
ConstructorsConstructorDescriptionExcelExperimentsWriter(List<String> nameDatasets, List<String> nameModels, List<String> nameClassVariables, List<String> nameFeatureVariables, BNParameterLearningAlgorithm bnPLA, CTBNParameterLearningAlgorithm ctbnPLA, String initialStructure, double sigPC, double sigTimeTransitionHypothesis, double sigStateToStateTransitionHypothesis, List<Long> seeds, String nameGeneratedFile) Initialises the writer.ExcelExperimentsWriter(List<String> scoreFunctions, List<String> nameDatasets, List<String> nameModels, List<String> nameClassVariables, List<String> nameFeatureVariables, BNParameterLearningAlgorithm bnPLA, CTBNParameterLearningAlgorithm ctbnPLA, String penalisationFunction, String initialStructure, List<Long> seeds, String nameGeneratedFile) Initialises the writer. -
Method Summary
Methods inherited from class es.upm.fi.cig.multictbnc.writers.performance.MetricsWriter
write
-
Constructor Details
-
ExcelExperimentsWriter
public ExcelExperimentsWriter(List<String> scoreFunctions, List<String> nameDatasets, List<String> nameModels, List<String> nameClassVariables, List<String> nameFeatureVariables, BNParameterLearningAlgorithm bnPLA, CTBNParameterLearningAlgorithm ctbnPLA, String penalisationFunction, String initialStructure, List<Long> seeds, String nameGeneratedFile) Initialises the writer.- Parameters:
scoreFunctions- list of score functionsnameDatasets- list of dataset namesnameModels- list of model namesnameClassVariables- names of class variablesnameFeatureVariables- names of feature variablesbnPLA- parameter learning algorithm for a Bayesian networkctbnPLA- parameter learning algorithm for a continuous time Bayesian networkpenalisationFunction- name of the penalisation functioninitialStructure- name for the initial structureseeds- seeds that are used to shuffle the datasets. It is assumed that each dataset will be evaluated with each of those seedsnameGeneratedFile- name of the resulting file
-
ExcelExperimentsWriter
public ExcelExperimentsWriter(List<String> nameDatasets, List<String> nameModels, List<String> nameClassVariables, List<String> nameFeatureVariables, BNParameterLearningAlgorithm bnPLA, CTBNParameterLearningAlgorithm ctbnPLA, String initialStructure, double sigPC, double sigTimeTransitionHypothesis, double sigStateToStateTransitionHypothesis, List<Long> seeds, String nameGeneratedFile) Initialises the writer. This constructor was thought to report results of score-based and constraint-based algorithms.- Parameters:
nameDatasets- dataset namesnameModels- model namesnameClassVariables- names of class variablesnameFeatureVariables- names of feature variablesbnPLA- parameter learning algorithm for a Bayesian networkctbnPLA- parameter learning algorithm for a continuous-time Bayesian networkinitialStructure- name for the initial structuresigPC- significance level for the PC algorithmssigTimeTransitionHypothesis- significance level used for the null time to transition hypothesissigStateToStateTransitionHypothesis- significance level used for the null state-to-state transition hypothesisseeds- list with seeds that are used to shuffle the datasets. It is assumed that each dataset will be evaluated with each of those seedsnameGeneratedFile- name of the generated Excel file
-
-
Method Details
-
close
public void close()Description copied from class:MetricsWriterCloses the writer.- Overrides:
closein classMetricsWriter
-
write
Description copied from class:MetricsWriterWrites the given results. The results are provided as aMapwhere ke evaluation metric names and values represent their corresponding scores.- Specified by:
writein classMetricsWriter- Parameters:
results- aMapwith the results of the evaluation metrics
-