topic_coherence.aggregation
– Aggregation module¶This module contains functions to perform aggregation on a list of values obtained from the confirmation measure.
gensim.topic_coherence.aggregation.
arithmetic_mean
(confirmed_measures)¶Perform the arithmetic mean aggregation on the output obtained from the confirmation measure module.
confirmed_measures (list of float) – List of calculated confirmation measure on each set in the segmented topics.
Arithmetic mean of all the values contained in confirmation measures.
numpy.float
Examples
>>> from gensim.topic_coherence.aggregation import arithmetic_mean
>>> arithmetic_mean([1.1, 2.2, 3.3, 4.4])
2.75