msmbuilder.MSMLib.trim_states

msmbuilder.MSMLib.trim_states(states_to_trim, counts, assignments=None)[source]

Performs the necessary operations to reduce an MSM to a subset of the original states – effectively trimming those states out.

Parameters:

states_to_trim : ndarray, int OR list of ints

A list of indices of the states to trim

counts : matrix

A counts matrix

assignments : ndarray, int (optional)

An assignments array

Returns:

trimmed_counts : matrix

The trimmed counts matrix

trimmed_assignments : ndarray (if assignments are provided)

The assignements, with values for “trimmed” states set to “-1”, which is read as an empty value by MSMBuilder

Versions