Module es.upm.fi.cig.multictbnc
Class FeatureStreamAsStaticDatasetExperiment
java.lang.Object
es.upm.fi.cig.multictbnc.experiments.implementationsexperiments.featurestreamexperiments.FeatureStreamImplementationExperiment
es.upm.fi.cig.multictbnc.experiments.implementationsexperiments.featurestreamexperiments.FeatureStreamAsStaticDatasetExperiment
Implements an experiment where a feature stream is treated as a static dataset. This class is responsible for
training and validating a Multi-CTBNC.
-
Constructor Summary
ConstructorDescriptionFeatureStreamAsStaticDatasetExperiment
(String pathFeatureStream, String nameTimeVariable, List<String> nameClassVariables, DatasetReader initialDatasetReader, DatasetReader testDatasetReader, int experimentNumber, int numFeatures, boolean areModelsValidated) Constructs a FeatureStreamAsStaticDatasetExperiment with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(MultiCTBNC<CPTNode, CIMNode> model) Executes the experiment.Provides the filename for storing results.Methods inherited from class es.upm.fi.cig.multictbnc.experiments.implementationsexperiments.featurestreamexperiments.FeatureStreamImplementationExperiment
close
-
Constructor Details
-
FeatureStreamAsStaticDatasetExperiment
public FeatureStreamAsStaticDatasetExperiment(String pathFeatureStream, String nameTimeVariable, List<String> nameClassVariables, DatasetReader initialDatasetReader, DatasetReader testDatasetReader, int experimentNumber, int numFeatures, boolean areModelsValidated) throws UnreadDatasetException, IOException Constructs a FeatureStreamAsStaticDatasetExperiment 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:
UnreadDatasetException
- if the dataset cannot be readIOException
- if an error occurs in file reading
-
-
Method Details
-
getFilenameResults
Description copied from class:FeatureStreamImplementationExperiment
Provides the filename for storing results.- Specified by:
getFilenameResults
in classFeatureStreamImplementationExperiment
- Returns:
- the filename as a string
-
execute
public void execute(MultiCTBNC<CPTNode, CIMNode> model) throws UnreadDatasetException, IOException, ErroneousValueExceptionDescription copied from class:FeatureStreamImplementationExperiment
Executes the experiment.- Specified by:
execute
in classFeatureStreamImplementationExperiment
- 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
-