jieunbyun / BNS-JT

Reference: Byun, J.-E. and Song, J. (2021). A general framework of Bayesian network for system reliability analysis using junction tree. Reliability Engineering & System Safety, 216, 107952.
MIT License
5 stars 3 forks source link

Rules #50

Closed dynaryu closed 7 months ago

dynaryu commented 7 months ago

I made a bit of changes in terms of data structure of the variable: rules:

before: a list of tuples e.g., [({'e1': 0} , 's'), ({'e1': 2} , 'f')]

after: a dict of list e.g., {'s': [{'e1': 0}], 'f': [{'e1': 2}], 'u': []}

Not sure about performance though.