9916288b1fede659d8a931c324430d97cbd9e92e,pgmpy/models/DynamicBayesianNetwork.py,DynamicBayesianNetwork,get_slice_nodes,#DynamicBayesianNetwork#Any#,244

Before Change


    	>>> dbn.add_edges_from([(("D",0),("G",0)),(("I",0),("G",0)),(("G",0),("L",0)),(("D",0),("D",1))])
    	>>> dbn.get_slice_nodes()
    	
    	if not str(time_slice).isdigit():
            raise ValueError("The timeslice should be a positive value greater than or equal to zero")

    	return [(node, time_slice) for node in self.nodes()]

After Change


    	>>> dbn.add_edges_from([(("D",0),("G",0)),(("I",0),("G",0)),(("G",0),("L",0)),(("D",0),("D",1))])
    	>>> dbn.get_slice_nodes()
    	
    	if not isinstance(time_slice, int) or time_slice < 0:
            raise ValueError("The timeslice should be a positive value greater than or equal to zero")

    	return [(node, time_slice) for node in self.nodes()]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: pgmpy/pgmpy
Commit Name: 9916288b1fede659d8a931c324430d97cbd9e92e
Time: 2015-07-29
Author: abhor902@gmail.com
File Name: pgmpy/models/DynamicBayesianNetwork.py
Class Name: DynamicBayesianNetwork
Method Name: get_slice_nodes


Project Name: pgmpy/pgmpy
Commit Name: 9916288b1fede659d8a931c324430d97cbd9e92e
Time: 2015-07-29
Author: abhor902@gmail.com
File Name: pgmpy/models/DynamicBayesianNetwork.py
Class Name: DynamicBayesianNetwork
Method Name: get_intra_edges


Project Name: pgmpy/pgmpy
Commit Name: 9916288b1fede659d8a931c324430d97cbd9e92e
Time: 2015-07-29
Author: abhor902@gmail.com
File Name: pgmpy/models/DynamicBayesianNetwork.py
Class Name: DynamicBayesianNetwork
Method Name: get_interface_nodes