build_model_from_explicit

build_model_from_explicit(
transitions: str | PathLike[str],
labeling: str | PathLike[str],
*,
state_rewards: str | PathLike[str] | None = None,
transition_rewards: str | PathLike[str] | None = None,
choice_labeling: str | PathLike[str] | None = None,
options: ExplicitModelParserOptions | None = None,
)

Build a model in sparse representation from files in the explicit format (.tra, .lab, …). All paths can be given as strings or path-like objects.

Parameters:
  • transitions – Path to the file containing the transitions (.tra).

  • labeling – Path to the file containing the state labeling (.lab).

  • state_rewards – (optional) Path to the file containing state rewards.

  • transition_rewards – (optional) Path to the file containing transition rewards.

  • choice_labeling – (optional) Path to the file containing the choice labeling.

  • options – (optional) Options for the explicit parser.

Returns:

The model in sparse representation.