pasteur.marginal.numpy#

Description

Functions

calc_marginal(cols, cols_noncommon, domains, ...)

Calculates the 1 way and 2 way marginals between the subsection of the hierarchical attribute x and the attributes p(arents).

calc_marginal_1way(cols, cols_noncommon, ...)

Calculates the 1 way marginal of the subsections of attributes x

expand_table(attrs, table, *[, out_cols, ...])

Takes in the raw idx encoded table and precalculates all column-height combinations of hierarchical attributes, with special versions for marginal calculations with attributes that have an NA value.

get_domains(attrs)

rtype:

dict[str, list[int]]

normalize(counts[, zero_fill])

normalize_1way(counts[, zero_fill])

Classes

AttrSelector(name, common, cols)