MCPcopy Create free account
hub / github.com/CyberPoint/libpgm / refresh

Method refresh

libpgm/tablecpdfactorization.py:61–66  ·  view source on GitHub ↗

Refresh the *factorlist* attribute to equate with *originalfactorlist*. This is in effect a reset of the system, erasing any changes to *factorlist* that the program has executed.

(self)

Source from the content-addressed store, hash-verified

59 assert self.factorlist, "Factor list not properly loaded, check for an incomplete class instance as input."
60
61 def refresh(self):
62 '''
63 Refresh the *factorlist* attribute to equate with *originalfactorlist*. This is in effect a reset of the system, erasing any changes to *factorlist* that the program has executed.
64
65 '''
66 self.factorlist = copy.deepcopy(self.originalfactorlist)
67
68 def sumproducteliminatevar(self, vertex):
69 '''

Callers 7

gibbssampleMethod · 0.95
__init__Method · 0.80
test_refreshMethod · 0.80
test_sumproductveMethod · 0.80
test_condprobveMethod · 0.80
test_specificqueryMethod · 0.80

Calls

no outgoing calls

Tested by 5

test_refreshMethod · 0.64
test_sumproductveMethod · 0.64
test_condprobveMethod · 0.64
test_specificqueryMethod · 0.64