openpathsampling.high_level.move_strategy.OrganizeByMoveGroupStrategy

class openpathsampling.high_level.move_strategy.OrganizeByMoveGroupStrategy(ensembles=None, group=None, replace=True)[source]

Default global strategy.

First choose move type, then choose specific instance of the mover.

default_group_weights

In the format {str(group_name) : float(weight)}

Type:

dict

group_weights

The sortkey weights. In the format {str(group_name) : float(weight)}

Type:

dict

mover_weights = dict

The mover weights. In the format {(str(group_name), ensemble_signature) : weight}

__init__(ensembles=None, group=None, replace=True)[source]

Methods

__init__([ensembles, group, replace])

args()

Return a list of args of the __init__ function of a class

base()

Return the most parent class actually derived from StorableObject

choice_probability(scheme, group_weights, ...)

Calculates the probability of choosing to do each move.

chooser_mover_weights(scheme, group, ...)

Set the weights within each "sorted"-level chooser.

chooser_root_weights(scheme, group_weights, ...)

Determine the choice probabilities for the root chooser.

count_weaks()

Return number of objects subclassed from StorableObject still in memory

default_weights(scheme)

Set the default weights given the initial scheme.

descendants()

Return a list of all subclassed objects

fix_name()

Set the objects name to be immutable.

from_dict(dct)

Reconstruct an object from a dictionary representaiton

get_ensembles(scheme, ensembles)

Regularizes ensemble input to list of list.

get_parameters(scheme[, list_parameters, ...])

Gather initialization parameters for each mover to be created.

get_per_mover_ensembles(scheme)

Get ensembles for each mover to be created.

get_uuid()

get_weights(scheme, sorted_movers[, ...])

Gets sort_weights and mover_weights dictionaries.

idx(store)

Return the index which is used for the object in the given store.

make_chooser(scheme, mover_weights, choosername)

Make RandomChoiceMover based on the movers and weights in mover_weights.

make_movers(scheme)

Makes the movers associated with this strategy.

named(name)

Name an unnamed object.

objects()

Returns a dictionary of all storable objects

override_weights(weights, override_w)

Overrides weights in a dictionary.

reverse_uuid()

ruuid(uid)

set_observer(active)

(De-)Activate observing creation of storable objects

set_replace(replace)

Sets values for replace_signatures and replace_movers.

to_dict()

Convert object into a dictionary representation

weights_from_choice_probability(scheme, ...)

Get the contributing weights from existing choice probability.

Attributes

ACTIVE_LONG

CREATION_COUNT

INSTANCE_UUID

base_cls

Return the base class

base_cls_name

Return the name of the base class

cls

Return the class name as a string

default_group_weights

default_name

Return the default name.

is_named

True if this object has a custom name.

level

The level of this strategy.

name

Return the current name of the object.

observe_objects