SearchResult#
- class causalbase.search.SearchResult(dag, score, n_iter, trace=<factory>, info=<factory>)[source]#
The network a search found, its score, and what it took to find it.
Returned by every search:
ges(),xges(),hill_climbing(),order_search(),flop()andexact_search().- Attributes:
- dagDAG
The best network found.
- scorefloat
Its score, as the search computed it.
- n_iterint
Iterations of the search; each function says what one is.
- tracelist of (float, int, float)
(seconds, iteration, best score)at the start and each time the best score improved.- infodict
What else the search reports, by name; each function lists its keys.
- cpdagPDAG
The Markov equivalence class of dag, which GES and XGES learn directly.