A reduced, decomposable model where the factors are clique potentials
and separators, related by a join forest.
|
|
__init__(self,
hm=(),
domain=None,
new_domain_variables=None,
must_be_new=False,
check=False,
modify=False,
elimination_order=None)
Construct a join forest model from an existing hierarchical model (or
factors) |
source code
|
|
|
String
|
|
|
|
calibrate(self)
Alter a JFR so that the factors associated with both cliques and
separators are the appropriate marginal distributions. |
source code
|
|
Same as self
|
condition(self,
condition)
Alter a JFR by effecting the restriction on variables given by
condition |
source code
|
|
|
JFR
|
|
|
|
|
|
|
marginal(self,
variables,
root=None,
perfect_sequence=None)
Compute the marginal distribution of variables
assuming they are a subset of some hyperedge (ie clique) |
source code
|
|
|
|
|
|
|
|
|
List
|
|
|
Iterator
|
|
|
|
|
|
|
var_marginal(self,
variable)
Compute the marginal distribution for variable, assuming
that self is calibrated |
source code
|
|
|
|
| _clique_disp(self,
clique_win,
factor_dict) |
source code
|
|
|
Inherited from RFR:
ipf
Inherited from SFR:
__iter__,
factor,
factors,
factors_containing_variable,
is_simple,
items,
simplify,
some_factor
Inherited from _AbsM:
__div__,
__getitem__,
__idiv__,
__imul__,
__len__,
__mul__,
__repr__,
__setitem__,
add_ident,
cpt,
eliminate_variable,
gui_display,
hypergraph,
inc_from_rawdata,
interaction_graph,
makeDN,
make_decomposable,
marginal_factor,
marginalise_away,
markov_blanket,
markov_blanket_cpt,
num_factors_containing_variable,
red,
reduced,
remove,
sumout,
variable_elimination,
variable_elimination_trace,
z,
zero
Inherited from Variables.SubDomain:
__add__,
__iadd__,
__isub__,
__rdiv__,
__rmul__,
__sub__,
drop_variable,
drop_variables,
inst2index,
insts,
insts_indices,
marginalise_onto,
table_size,
uses_default_domain,
variables,
varvalues
Inherited from Variables.Domain:
add_domain_variable,
add_domain_variables,
add_domain_variables_from_rawdata,
change_domain_variable,
change_domain_variables,
common_domain,
known_variable,
numvals,
values
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__
|