Open idle-tmac opened 6 years ago
Thanks for your report. I've updated the comment in the function to hopefully make it clearer. Basically, in this part of the code branch C_k = 0
, so
sessionEstimate['a'][k] = P(A_k = 1 | C_1, C_2, ..., C_N) = P(A_k = 1 | C_k = 0) =
P(A_k = 1, C_k = 0) / P(C_k = 0) = P(A_k = 1, C_k = 0) = P(A_k = 1) * P(C_k = 0 | A_k = 1) =
a_u * varphi[k][0]
def _getSessionEstimate(self, positionRelevances, layout, clicks, intent): .... gamma = self.getGamma(self.gammas, k, layout, intent)
E_k_multiplier --- P(S_k = 0 | C_k) P(C_k | E_k = 1)
In the above function, sessionEstimate['a'][k] = a_u varphi[k][0] mybe wrong,it should be a_u varphi[k][1]?
reason:a_u = P(C_k = 1 | E_k = 1 ) varphi[k][1] = P( E_k = 1 |C_1, C_2, C_3,.....C_N )
so: sessionEstimate['a'][k] = P(C_k = 1 | C_1, C_2, C_3,.....C_N) = P(C_k = 1 | E_k = 1 ) P( E_k = 1 |C_1, C_2, C_3,.....C_N ) = a_u varphi[k][1]
Do you agree with my opinion ? Please help me solve it,thank you.