Given a tidied dataframe of topic-doc or word-topic distributions and a exponent, renormalizes the distributions.
Arguments
- tidy_df
The tidied distribution dataframe
- group_col
Grouping column, RHS of the conditional probability distribution, eg, topics for word-topic distributions
- p_col
Column containing the probability for each category (eg, word) conditional on the group (eg, topic)
- exponent
Exponent to use in renormalization
- keep_original
Keep original probabilities?