Parameters

Spines models hold stores of spines.Parameter objects. These objects specify parameters that the model requires as well as any restrictions or constraints on them. There are different types of parameter classes (aside from the base class), but all of them share these common attributes:

value_type

The type(s) of data that are allowed for the value of the parameter.

default

An optional default value for the parameter if it’s not otherwise specified.

desc

An optional description for the parameter.

There are a number of helpers and mixins so that you can create parameter classes to suit your particular use case.