示例#1
0
文件: chainers.py 项目: Otero/opencog
    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
示例#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
示例#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
示例#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