causalincentives / pycid

Library for graphical models of decision making, based on pgmpy and networkx
Apache License 2.0
96 stars 13 forks source link

Make `all_decision/utility_nodes` sets #32

Closed edlanglois closed 3 years ago

edlanglois commented 3 years ago

Avoids a conversion from set => list and speeds up the existing checks of node in self.all_decision_nodes

edlanglois commented 3 years ago

Same with the values in agent_decisions and CID.decisions, CID.utilities

tom4everitt commented 3 years ago

sounds good to me! :)