(self, predict_res_list)
return prob
prob result is available for guest party only.
prob result is available for guest party only.
prob result is available for guest party only .
def _comprehensive_result(self, predict_res_list):
        """
        prob result is available for guest party only.
        """
        if self.role == consts.GUEST:
            # assert 1 == 2, f"predict_res_list: {predict_res_list[0].first()[1].features}"
            prob = predict_res_list[0].mapValues(lambda r: [r.features[2]])
            for predict_res in predict_res_list[1:]:
                prob = prob.join(predict_res, lambda p, r: p + [r.features[2]])
        else:
            prob = None
        return prob
def _comprehensive_result ( self , predict_res_list ) : if self . role == consts . GUEST : # assert 1 == 2, f"predict_res_list: {predict_res_list[0].first()[1].features}" prob = predict_res_list [ 0 ] . mapValues ( lambda r : [ r . features [ 2 ] ] ) for predict_res in predict_res_list [ 1 : ] : prob = prob . join ( predict_res , lambda p , r : p + [ r . features [ 2 ] ] ) else : prob = None return prob