irm

microscopes.irm.definition

class microscopes.irm.definition.model_definition
domain_hyperpriors(self)
domains(self)
relation_hyperpriors(self)
relation_models(self)
relations(self)
shape(self, relation)

microscopes.irm.model

class microscopes.irm.model.state

The underlying state of an Infinite Relational Model.

You should not explicitly construct a state object. Instead, use initialize().

Notes

This class is not meant to be sub-classed.

assignments(self, int domain)
empty_groups(self, int domain)
entity_data_positions(self, int domain, int eid, relations)
get_domain_hp(self, int domain)
get_relation_hp(self, int relation)
get_suffstats(self, int relation, gids)
groups(self, int domain)
groupsize(self, int domain, int gid)
isactivegroup(self, int domain, int gid)
models(self)
ndomains(self)
nentities(self, int domain)
ngroups(self, int domain)
nrelations(self)
score_assignment(self, int domain)
score_likelihood(self, rng r)
serialize(self)
set_domain_hp(self, int domain, dict d)
set_relation_hp(self, int relation, dict d)
microscopes.irm.model.initialize(model_definition defn, data, rng r, **kwargs)

Initialize state to a random, valid point in the state space

Parameters:

defn : model definition

data : list of relation dataviews

rng : random state

microscopes.irm.model.bind(state s, int domain, relations)
microscopes.irm.model.deserialize(model_definition defn, bytes)

Restore a state object from a bytestring representation.

Note that a serialized representation of a state object does not contain its own structural definition.

Parameters:

defn : model definition

bytes : bytestring representation

Datamicroscopes is developed by Qadium, with funding from the DARPA XDATA program. Copyright Qadium 2015.