def answer_probabilities(self, *args, **kwargs):
        input = self.input_layer.output(*args, **kwargs)
        input_clipped = T.maximum(input, 0) # T.clip(input, 0, 1) # T.maximum(input, 0)

        q1 = input_clipped[:, 0:3] # 1.1 - 1.3
        q2 = input_clipped[:, 3:5] # 2.1 - 2.2
        q3 = input_clipped[:, 5:7] # 3.1 - 3.2
        q4 = input_clipped[:, 7:9] # 4.1 - 4.2
        q5 = input_clipped[:, 9:13] # 5.1 - 5.4
        q6 = input_clipped[:, 13:15] # 6.1 - 6.2
        q7 = input_clipped[:, 15:18] # 7.1 - 7.3
        q8 = input_clipped[:, 18:25] # 8.1 - 8.7
        q9 = input_clipped[:, 25:28] # 9.1 - 9.3
        q10 = input_clipped[:, 28:31] # 10.1 - 10.3
        q11 = input_clipped[:, 31:37] # 11.1 - 11.6

        # what if the sums are 0?
        # adding a very small constant works, but then the probabilities don't sum to 1 anymore.
        # is there a better way?

        q1 = q1 / (q1.sum(1, keepdims=True) + 1e-12)
        q2 = q2 / (q2.sum(1, keepdims=True) + 1e-12)
        q3 = q3 / (q3.sum(1, keepdims=True) + 1e-12)
        q4 = q4 / (q4.sum(1, keepdims=True) + 1e-12)
        q5 = q5 / (q5.sum(1, keepdims=True) + 1e-12)
        q6 = q6 / (q6.sum(1, keepdims=True) + 1e-12)
        q7 = q7 / (q7.sum(1, keepdims=True) + 1e-12)
        q8 = q8 / (q8.sum(1, keepdims=True) + 1e-12)
        q9 = q9 / (q9.sum(1, keepdims=True) + 1e-12)
        q10 = q10 / (q10.sum(1, keepdims=True) + 1e-12)
        q11 = q11 / (q11.sum(1, keepdims=True) + 1e-12)

        return q1, q2, q3, q4, q5, q6, q7, q8, q9, q10, q11
Test uptohash single match inside comment
dataset/ETHPy150Open benanne/kaggle-galaxies/custom.py/DivisiveGalaxyOutputLayer.answer_probabilities--crossover with--dataset/ETHPy150Open oohlaf/dotsecrets/dotsecrets/tests/test_clean.py/TestCleanSecret.test_sub_uth_single_match_inside_comment