6a5216e488b7f1cd388cb817581d7988ce0353b5,pgmpy/MarkovModel/MarkovModel.py,MarkovModel,__init__,#MarkovModel#Any#,86

Before Change


    def __init__(self, ebunch=None):
        nodes = []
        if ebunch is not None:
            nodes = set(itertools.chain(*ebunch))
            self._check_node_string(nodes)
        nx.Graph.__init__(self, ebunch)
        if ebunch is not None:
            for node in nodes:

After Change


    def __init__(self, ebunch=None):
        nx.Graph.__init__(self, ebunch)
        if ebunch:
            for node in self.nodes():
                self._set_is_observed(node, False)
        self.factors = []
        self.cardinality = {}
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pgmpy/pgmpy
Commit Name: 6a5216e488b7f1cd388cb817581d7988ce0353b5
Time: 2014-08-20
Author: ankurankan@gmail.com
File Name: pgmpy/MarkovModel/MarkovModel.py
Class Name: MarkovModel
Method Name: __init__


Project Name: pgmpy/pgmpy
Commit Name: 4cbc6532d7fd2d1ffc1d7cd6fd71a9b60f1130c8
Time: 2014-11-30
Author: abinash.panda.ece10@itbhu.ac.in
File Name: pgmpy/models/FactorGraph.py
Class Name: FactorGraph
Method Name: to_markov_model


Project Name: stellargraph/stellargraph
Commit Name: 956f06cd7860dd5387411c28890d87c70dcd8f42
Time: 2020-01-14
Author: Huon.Wilson@data61.csiro.au
File Name: tests/layer/test_rgcn.py
Class Name:
Method Name: get_As