def topic_oscillations(self, print_len=10, div_fn=KL_div):
        topic_indices = np.arange(self.model.K)
            
        pseudo_docs = np.diag(np.ones(self.model.K, dtype='d'))[topic_indices, :]
        rel_entropies = div_fn(pseudo_docs, self.theta)
        oscillations = rel_entropies.max(axis=1) - rel_entropies.min(axis=1)

        k_arr = enum_sort(oscillations).view(LabeledColumn)
        k_arr.col_header = 'Topic Oscillation'
        k_arr.subcol_headers = ['Index', 'Oscillation']
        k_arr.col_len = 10
        return k_arr
Returns the oscillation in the divergences of documents
dataset/ETHPy150Open inpho/vsm/vsm/viewer/ldacgsviewer.py/LdaCgsViewer.topic_oscillations