def _revise_tvs(self, atom, new_tv): old_tv = atom.tv revised_tv = revisionFormula([old_tv, new_tv]) atom.tv = revised_tv print 'old_tv, revised_tv, atom.tv =', old_tv, revised_tv, atom.tv
def _revise_tvs(self, atom, new_tv): old_tv = atom.tv revised_tv = revisionFormula([old_tv, new_tv]) atom.tv = revised_tv # atom.tv= actually uses the "truth value merging" function in the atomspace, # which will always use the tv with the higher confidence (which is always the revised TV, at least with the current revisionFormula) assert atom.tv == revised_tv