cotengra.path_mcts#

Module Contents#

Classes#

Functions#

gumbel()

class cotengra.path_mcts.Node(hg, nid_path, size, local_score, forward_score)#
__slots__ = ['hg', 'n', 'graph_key', 'nid_path', 'size', 'local_score', 'forward_score', 'mean', 'count',...#
update(x)#

Report the score x, presumably from a child node, updating this nodes score.

__hash__()#

Return hash(self).

__lt__(other)#

Return self<value.

__repr__()#

Return repr(self).

cotengra.path_mcts.gumbel()#
class cotengra.path_mcts.MCTS(chi, T=0.1, prune=True, optimize=None, optimize_factory=False)#
__slots__ = ['chi', 'T', 'prune', 'optimize', 'optimize_factory', 'best_score', 'best_nid_path', 'children',...#
__repr__()#

Return repr(self).

setup(inputs, output, size_dict)#
get_ssa_path()#

Convert unique node identifiers to ssa.

check_node(node)#
delete_node(node)#
backprop(node)#
simulate_node(node)#
simulate_optimized(node)#
is_deadend(node)#
descend()#
property ssa_path#
property path#
run(inputs, output, size_dict)#
search(inputs, output, size_dict)#
__call__(inputs, output, size_dict)#