570766555e1935ae0b09009771ad3f9cd09eeefb,BayesianModel.py,,,#,159

Before Change


    print(sorted(student.edges()))

    student.add_states("diff", ("hard", "easy"))
    print(student.states("diff"))

    student.add_states("intel", ("smart", "avg", "dumb"))
    print(student.states("intel"))

After Change


    student.add_edges(("diff", "intel"), ("grades",))
    print(sorted(student.edges()))
    student.add_states("diff", ("hard", "easy"))
    print([m for m in student.states("diff")])
    student.add_states("intel", ("smart", "avg", "dumb"))
    print([m for m in student.states("intel")])
    student.add_states("grades", ("A", "B", "C"))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pgmpy/pgmpy
Commit Name: 570766555e1935ae0b09009771ad3f9cd09eeefb
Time: 2013-09-26
Author: snigam3112@gmail.com
File Name: BayesianModel.py
Class Name:
Method Name: