Old engine for Continuous Time Bayesian Networks. Superseded by reCTBN. 🐍
https://github.com/madlabunimib/PyCTBN
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
370 B
17 lines
370 B
4 years ago
|
|
||
|
|
||
|
class Structure:
|
||
|
|
||
|
def __init__(self, structure, variables):
|
||
|
self.structure_frame = structure
|
||
|
self.variables_frame = variables
|
||
|
|
||
|
def list_of_edges(self):
|
||
|
edges_list = []
|
||
|
for indx, row in self.structure_frame.iterrows():
|
||
|
row_tuple = (row.From, row.To)
|
||
|
edges_list.append(row_tuple)
|
||
|
return edges_list
|
||
|
|
||
|
|