gensim logo

gensim
gensim tagline

Get Expert Help From The Gensim Authors

Consulting in Machine Learning & NLP

• Commercial document similarity engine: ScaleText.ai

Corporate trainings in Python Data Science and Deep Learning

topic_coherence.aggregation – Aggregation module

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.

Parameters:confirmed_measures (list of float) – List of calculated confirmation measure on each set in the segmented topics.
Returns:Arithmetic mean of all the values contained in confirmation measures.
Return type:numpy.float

Examples

>>> from gensim.topic_coherence.aggregation import arithmetic_mean
>>> arithmetic_mean([1.1, 2.2, 3.3, 4.4])
2.75