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 ¶
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
tdeclares the parameter that shifts the edge, and by how much, under the optionalndt_edge_shiftkey:{"param": "st", "scale": 0.5}floors the log-likelihood for response times at or belowt - 0.5 * stinstead oft.
Returns:
-
None–
Raises:
-
ValueError–If the model name already exists