Professional Documents
Culture Documents
PRESENCE PENALTY
The frequency penalty decreases the likelihood that the model will
penalty increases the likelihood that it will talk about new topics.
FREQUENCY AND PRESENCE PENALTY
Frequency penalty
The frequency penalty reduces the probability of words that have already been generated.
The penalty depends on how many times a word has already occurred in the prediction.
Presence penalty
The presence penalty parameter encourages the model to make novel predictions.
The presence penalty lowers the probability of a word if it already appeared in the predicted text.
Unlike the frequency penalty, the presence penalty does not depend on the frequency at which words appear in
past predictions.