def rel_mse_logit_p_ij(n, d, f): logit_P = logit(d.edge_probabilities(n)) logit_Q = f.baseline_logit(n) return rel_mse(logit(f.edge_probabilities(n)), logit_Q, logit_P)
def rel_mse_p_ij(n, d, f): P = d.edge_probabilities(n) return rel_mse(f.edge_probabilities(n), f.baseline(n), P)
def rel_mse_logit_p_ij(n, d, f): logit_P = d.edge_probabilities(n, logit = True) logit_Q = f.baseline_logit(n) return rel_mse(f.edge_probabilities(n, logit = True), logit_Q, logit_P)