Skip to content

Python Documentation error #96

@buddha314

Description

@buddha314

The line from problog import get_evaluatable is missing from this code block the Problog As Datastructure Page

from problog.program import SimpleProgram
from problog.logic import Constant,Var,Term,AnnotatedDisjunction

coin,heads,tails,win,query = Term('coin'),Term('heads'),Term('tails'),Term('win'),Term('query')
C = Var('C')
p = SimpleProgram()
p += coin(Constant('c1'))
p += coin(Constant('c2'))
p += AnnotatedDisjunction([heads(C,p=0.4), tails(C,p=0.6)], coin(C))
p += (win << heads(C))
p += query(win)

get_evaluatable().create_from(p).evaluate()
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions