71cedeb5e242e4f1d39d3e6bdf22aebc18119665,pgmpy/readwrite/BIF.py,BIFReader,get_probability_grammar,#BIFReader#,86

Before Change


        // 1.00 or 1 or 1.00. 0.00 or 9.8e-5 etc
        num_expr = Word(nums + "-" + "+" + "e" + "E" + ".") + Suppress(Optional(","))
        probability_expr = Suppress("probability") + Suppress("(") + OneOrMore(word_expr) + Suppress(")")
        optional_expr = Suppress("(") + Suppress(OneOrMore(word_expr2)) + Suppress(")")
        probab_attributes = optional_expr | Suppress("table")
        cpd_expr = probab_attributes + OneOrMore(num_expr)

        return probability_expr, cpd_expr

After Change


        // 1.00 or 1 or 1.00. 0.00 or 9.8e-5 etc
        num_expr = Word(nums + "-" + "+" + "e" + "E" + ".") + Suppress(Optional(","))
        probability_expr = Suppress("probability") + Suppress("(") + OneOrMore(word_expr) + Suppress(")")
        optional_expr = Suppress("(") + OneOrMore(word_expr2) + Suppress(")")
        probab_attributes = optional_expr | Suppress("table")
        cpd_expr = probab_attributes + OneOrMore(num_expr)

        return probability_expr, cpd_expr
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: pgmpy/pgmpy
Commit Name: 71cedeb5e242e4f1d39d3e6bdf22aebc18119665
Time: 2019-02-04
Author: utkarsh.gupta550@gmail.com
File Name: pgmpy/readwrite/BIF.py
Class Name: BIFReader
Method Name: get_probability_grammar


Project Name: pgmpy/pgmpy
Commit Name: e34cec15d93b9588cde207389a7907732f2c0bbd
Time: 2015-11-10
Author: utkarsh.gupta550@gmail.com
File Name: pgmpy/readwrite/BIF.py
Class Name: BifReader
Method Name: get_cpd