Module es.upm.fi.cig.multictbnc
Class AverageLocalLogLikelihood
java.lang.Object
es.upm.fi.cig.multictbnc.conceptdriftdetection.AverageLocalLogLikelihood
- All Implemented Interfaces:
ConceptDriftScore
This class provides a method to compute the average local log-likelihood of each node of a Multi-CTBNC.
-
Field Summary
Modifier and TypeFieldDescriptionprotected Map<String,
DoubleUnaryOperator> A map that associates penalisation function names with their corresponding mathematical functions. -
Constructor Summary
ConstructorDescriptionAverageLocalLogLikelihood
(String penalisationFunction) Constructs an instance of AverageLocalLogLikelihood with a specified penalisation function. -
Method Summary
-
Field Details
-
penalisationFunctionMap
A map that associates penalisation function names with their corresponding mathematical functions.
-
-
Constructor Details
-
AverageLocalLogLikelihood
Constructs an instance of AverageLocalLogLikelihood with a specified penalisation function.- Parameters:
penalisationFunction
- name of the penalisation function
-
-
Method Details
-
compute
public double[] compute(MultiCTBNC<CPTNode, CIMNode> model, Dataset newBatch, List<String> nameVariables) Description copied from interface:ConceptDriftScore
Compute the score over each node of the providedMultiCTBNC
.- Specified by:
compute
in interfaceConceptDriftScore
- Parameters:
model
- MultiCTBNC model to be evaluated for concept driftnewBatch
- new data batch that is used to compute the drift scorenameVariables
- names of the variables- Returns:
- array of doubles representing the drift scores for each node
-