INNER CODE UNIT · Python

total

JohannesBuchner/nway · nwaylib/__init__.py:431

	total = total + log_probs
	return table, total


def _compute_final_probabilities(match_tables, table, prob_ratio_secondary, prior, total, logger):
	logger.log('')
	logger.log('Computing final probabilities ...')

	# add the posterior column
	post = bayesdist.posterior(prior, total)
	table = table.assign(p_single=post)

	# compute weights for group posteriors
	# 4pi comes from Eq.
	ncat = table['ncat'].values
	log_post_weight = bayesdist.unnormalised_log_posterior(prior, total, ncat)
	table = table.assign(log_post_weight=log_post_weight)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…