pasteur.mare.chains

pasteur.mare.chains#

Description

This module contains functions for calculating the markov chain combinations of different tables in a dataset.

Functions

calculate_stripped_meta(attrs)

calculate_table_chains(attrs, ids, tables[, ...])

Returns a tuple of all possible chain combinations for the tables in the provided view (as a dictionary of table -> chains) and a dictionary of chain to row count mappings.

get_children(ids)

Returns a graph of the children relationships in the dataset, based on the id table.

get_parents(ids[, table, _reverse])

Returns a graph of the parent relationships in the dataset, based on the id table.

Classes

TableMeta(sequence, order, partition, ...)

TablePartition(partitions, table)

TableVersion(name, rows, children, max_len, ...)

Contains the parameters required to construct a markov chain for table with name name, by recursing on its parents.