Skip to content

Model discovery and registration

Custom registry entries use the same configuration contract as direct model construction. Read Model configuration and response domains before registering a model; this page documents the registry functions.

hssm.list_models

hssm.list_models

list_models() -> tuple[SupportedModels, ...]

Return the names of the built-in HSSM models.

Returns:

  • tuple[SupportedModels, ...] –

    A tuple containing all built-in HSSM model names.

hssm.register_model

hssm.register_model

register_model(
    name: SupportedModels,
    response: list[str],
    list_params: list[str],
    choices: list[int] | None = None,
    likelihoods: LoglikConfigs | None = None,
    description: str | None = None,
    response_domains: dict[str, ResponseDomainSpec] | None = None,
) -> None

Register a new model in HSSM.

Parameters:

  • name (str) –

    Name of the model to register

  • response (list[str]) –

    List of response variables

  • list_params (list[str]) –

    List of parameters

  • choices (list[int] or None, default: None ) –

    Legacy list of possible choices for one categorical response. Omit when supplying response_domains.

  • response_domains (dict or None, default: None ) –

    Canonical metadata keyed by each physical non-RT response column.

  • description (str, default: None ) –

    Description of the model

  • likelihoods (LoglikConfigs, default: None ) –

    Dictionary of likelihood configurations. A likelihood whose support starts below the non-decision time t declares the parameter that shifts the edge, and by how much, under the optional ndt_edge_shift key: {"param": "st", "scale": 0.5} floors the log-likelihood for response times at or below t - 0.5 * st instead of t.

Returns:

  • None –

Raises: