(answers,temperature=1)
| 14 | |
| 15 | # For DFS |
| 16 | def softmax_bias(answers,temperature=1): |
| 17 | |
| 18 | sums = 0.0 |
| 19 | answers = [ 10**((cont/temperature)/400) for cont in answers] |
| 20 | for cont in answers: |
| 21 | assert type(cont) == float or type(cont) == int |
| 22 | sums += cont |
| 23 | answers = [ cont/sums for cont in answers] |
| 24 | return np.array(answers) |
| 25 | |
| 26 | def compute_epsilon_new_node(p_new_node): |
| 27 | ''' |
nothing calls this directly
no outgoing calls
no test coverage detected