Table of Contents

Class ConstrainedStationaryTransitions

Namespace
Bonsai.ML.HiddenMarkovModels.Transitions
Assembly
Bonsai.ML.HiddenMarkovModels.dll

Represents an operator that is used to create and transform an observable sequence of ConstrainedStationaryTransitions objects.

[Combinator]
[WorkflowElementCategory(ElementCategory.Source)]
[JsonObject(MemberSerialization.OptIn)]
public class ConstrainedStationaryTransitions : TransitionModel
Inheritance
ConstrainedStationaryTransitions
Inherited Members

Constructors

ConstrainedStationaryTransitions()

Constructs a new instance of the PythonModel class.

ConstrainedStationaryTransitions(params object[])

Initializes a new instance of the PythonModel class using keyword arguments.

Properties

Kwargs

The dictionary of keyword arguments that are used to construct the model.

KwargsArray
LogPs

The Log Ps of the transitions.

Params

The parameters that are used to define the model.

TransitionMask

The mask which gets applied to the transition matrix to prohibit certain transitions. It must be written in JSON format as an int[,] with the same shape as the transition matrix (nStates x nStates). For example, the mask [[1, 0], [1, 1]] is valid and would prohibit transitions from state 0 to state 1.

TransitionModelType

The type of Transitions model.

Methods

CheckKwargs(params object[])

Checks if the keyword arguments are valid.

CheckParams(params object[])

Checks if the parameters are valid.

Process()

Returns an observable sequence of ConstrainedStationaryTransitions objects.

Process(IObservable<PyObject>)

Transforms an observable sequence of Python.Runtime.PyObject into an observable sequence of ConstrainedStationaryTransitions objects by accessing internal attributes of the Python.Runtime.PyObject.

UpdateKwargs(params object[])

Updates the kwargs dictionary.

UpdateParams(params object[])

Updates the parameters.