Exemplo n.º 1
0
    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
Exemplo n.º 2
0
    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
Exemplo n.º 3
0
    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
Exemplo n.º 4
0
    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