IteratedLocalSearch#
- class causalbase.order.IteratedLocalSearch(scorer, n_swaps=None, random_state=None, kick='mixed')[source]#
Iterated insertion search with random-transposition kicks.
- Parameters:
- scorerOrderScorer
Order evaluator.
- n_swapsint or None, default=None
Transpositions per perturbation;
ceil(ln p)when None. Kept asn_swapswith that default resolved.- random_stateint or None, default=None
Seeds every random choice (visiting order and perturbations); None draws a fresh seed.
- kick{“swaps”, “topo”, “mixed”}, default=”mixed”
swaps:krandom transpositions.topo: a random topological order of the network the evaluator learns from the order, the same DAG reached through another order (the evaluator depends on the order, not only on the DAG).mixed: either, with equal probability.