Implement temperature with default value as 1. Following description is cited from karpathy/char-rnn
.
Temperature. An important parameter you may want to play with is -temperature, which takes a number in range (0, 1] (0 not included), default = 1. The temperature is dividing the predicted log probabilities before the Softmax, so lower temperature will cause the model to make more likely, but also more boring and conservative predictions. Higher temperatures cause the model to take more chances and increase diversity of results, but at a cost of more mistakes.
Implement temperature with default value as 1. Following description is cited from karpathy/char-rnn .