consensus#
- fedcausal.fusion.consensus(dags, percent)[source]#
Union every edge appearing in at least percent percent of the inputs.
An edge needs
ceil(percent * len(dags) / 100)votes, and at least one:50over three inputs keeps the edges two of them share.- Parameters:
- dagsSequence[DAG]
Input DAGs over the same node set.
- percentint
Percentage threshold (e.g.
50).
- Returns:
- DAG
The consensus DAG.