Module es.upm.fi.cig.multictbnc
Class FeatureStreamWithFSSExperiment
java.lang.Object
es.upm.fi.cig.multictbnc.experiments.implementationsexperiments.featurestreamexperiments.FeatureStreamImplementationExperiment
es.upm.fi.cig.multictbnc.experiments.implementationsexperiments.featurestreamexperiments.FeatureStreamWithFSSExperiment
Represents an experiment that processes a feature stream with online feature subset selection using a MultiCTBNC. It
iteratively updates the model with new features and validates the final model's performance.
-
Constructor Summary
ConstructorDescriptionFeatureStreamWithFSSExperiment
(String pathFeatureStream, String nameTimeVariable, List<String> nameClassVariables, DatasetReader initialDatasetReader, DatasetReader testDatasetReader, CTBNParameterLearningAlgorithm ctbnPLA, int maxSeparatingSizeFSS, int experimentNumber, int numFeatures, boolean areModelsValidated, double sigTimeTransitionHyp, double sigStateToStateTransitionHyp) Initializes a FeatureStreamWithFSSExperiment with the provided configuration 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
-
FeatureStreamWithFSSExperiment
public FeatureStreamWithFSSExperiment(String pathFeatureStream, String nameTimeVariable, List<String> nameClassVariables, DatasetReader initialDatasetReader, DatasetReader testDatasetReader, CTBNParameterLearningAlgorithm ctbnPLA, int maxSeparatingSizeFSS, int experimentNumber, int numFeatures, boolean areModelsValidated, double sigTimeTransitionHyp, double sigStateToStateTransitionHyp) throws UnreadDatasetException, IOException Initializes a FeatureStreamWithFSSExperiment with the provided configuration parameters.- Parameters:
pathFeatureStream
- path to the feature streamnameTimeVariable
- name of the time variablenameClassVariables
- list of names of class variablesinitialDatasetReader
- DatasetReader for the initial datasettestDatasetReader
- DatasetReader for the test datasetctbnPLA
- parameter learning algorithm for the CIM nodesmaxSeparatingSizeFSS
- maximum separating size for the feature subset selectionexperimentNumber
- number identifying the experimentnumFeatures
- number of features in the dataset (used to identify results files)areModelsValidated
- boolean indicating whether the models should be validatedsigTimeTransitionHyp
- significance level for time transition hypothesissigStateToStateTransitionHyp
- significance level for state-to-state transition hypothesis- Throws:
UnreadDatasetException
- if there is an issue reading the datasetIOException
- if there is an I/O error
-
-
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 ErroneousValueException, UnreadDatasetException, IOExceptionDescription copied from class:FeatureStreamImplementationExperiment
Executes the experiment.- Specified by:
execute
in classFeatureStreamImplementationExperiment
- Parameters:
model
- Multi-CTBNC used in the experiment- Throws:
ErroneousValueException
- if there are erroneous values in the dataUnreadDatasetException
- if the dataset cannot be readIOException
- if an error occurs in file handling
-