Module es.upm.fi.cig.multictbnc
Class FeatureStreamImplementationExperiment
java.lang.Object
es.upm.fi.cig.multictbnc.experiments.implementationsexperiments.featurestreamexperiments.FeatureStreamImplementationExperiment
- Direct Known Subclasses:
FeatureStreamAsStaticDatasetExperiment,FeatureStreamWithFSSExperiment,FeatureStreamWithFSSWithoutUpdatingExperiment,FeatureStreamWithoutFSSExperiment
Abstract class representing an implementation of an experiment with feature streams.
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureStreamImplementationExperiment(String pathFeatureStream, String nameTimeVariable, List<String> nameClassVariables, DatasetReader initialDatasetReader, DatasetReader testDatasetReader, int experimentNumber, int numFeatures, boolean areModelsValidated) Constructs a FeatureStreamImplementationExperiment with the specified parameters. -
Method Summary
-
Constructor Details
-
FeatureStreamImplementationExperiment
public FeatureStreamImplementationExperiment(String pathFeatureStream, String nameTimeVariable, List<String> nameClassVariables, DatasetReader initialDatasetReader, DatasetReader testDatasetReader, int experimentNumber, int numFeatures, boolean areModelsValidated) throws IOException, UnreadDatasetException Constructs a FeatureStreamImplementationExperiment with the specified parameters.- Parameters:
pathFeatureStream- path to the feature streamnameTimeVariable- name of the time variablenameClassVariables- list of names of class variablesinitialDatasetReader- reader for the initial datasettestDatasetReader- reader for the test datasetexperimentNumber- identifier of the experimentnumFeatures- number of features in the datasetareModelsValidated- boolean flag indicating if models should be validated- Throws:
IOException- if an error occurs in file handlingUnreadDatasetException- if the dataset cannot be read
-
-
Method Details
-
getFilenameResults
Provides the filename for storing results.- Returns:
- the filename as a string
-
execute
public abstract void execute(MultiCTBNC<CPTNode, CIMNode> model) throws UnreadDatasetException, IOException, ErroneousValueExceptionExecutes the experiment.- Parameters:
model- Multi-CTBNC used in the experiment- Throws:
UnreadDatasetException- if the dataset cannot be readIOException- if an error occurs in file handlingErroneousValueException- if there are erroneous values in the data
-
close
Closes the resources used for the experiment. This includes the file writers for metrics and selected features.- Throws:
IOException- if an error occurs in file handling
-