|
POMDP Solver
|
Class to explire and export a pMC model. More...
Public Member Functions | |
| def | __init__ (self, model) |
| The constuctor. | |
| def | instantiate_parameters (self, parameter_values) |
| Instantiate a pMC. More... | |
| def | inspect_model (self) |
| Inspect model for invalid or missing components. | |
| def | has_transition_matrix (self) |
| Check if the pMC model has a transition matrix. More... | |
| def | has_state_labels (self) |
| Check if the pMC model has a state labels. More... | |
| def | has_reward_model (self) |
| Check if the pMC model has a reward model. More... | |
| def | has_parameters (self) |
| Check if the pMC model has uninstantiated parameters. More... | |
| def | get_model_type (self) |
| Get the pMC model type. More... | |
| def | get_states (self) |
| Get the states of the pMC model. More... | |
| def | get_nr_states (self) |
| Get the number of states in the pMC model. More... | |
| def | get_state_labels (self) |
| Get the state labels of the pMC model. More... | |
| def | get_reward_models (self) |
| Get the reward model of the pMC model. More... | |
| def | print_model_type (self) |
| Print the model type. | |
| def | print_nr_states (self) |
| Print the number of states. | |
| def | print_actions (self) |
| Print the actions. | |
| def | print_transitions (self) |
| Print the transitions of the model. | |
| def | print_rewards (self) |
| Print the reward model. | |
| def | print_state_reward (self, reward) |
| Print the state rewards. | |
| def | print_state_action_reward (self, reward) |
| Print the state action rewards. | |
| def | export_to_drn (self, file) |
| Export the pMC model to a DRN format file. | |
Public Attributes | |
| model | |
| The pMC model. More... | |
| nr_parameters | |
| Number of parameters of the pMC model. | |
Class to explire and export a pMC model.
Takes a pMC model as an argument that is returned by the buil_pmc function of the POMDP class.
| def pomdp_solver.PMC.get_model_type | ( | self | ) |
Get the pMC model type.
| def pomdp_solver.PMC.get_nr_states | ( | self | ) |
Get the number of states in the pMC model.
| def pomdp_solver.PMC.get_reward_models | ( | self | ) |
Get the reward model of the pMC model.
| def pomdp_solver.PMC.get_state_labels | ( | self | ) |
Get the state labels of the pMC model.
| def pomdp_solver.PMC.get_states | ( | self | ) |
Get the states of the pMC model.
| def pomdp_solver.PMC.has_parameters | ( | self | ) |
Check if the pMC model has uninstantiated parameters.
| def pomdp_solver.PMC.has_reward_model | ( | self | ) |
Check if the pMC model has a reward model.
| def pomdp_solver.PMC.has_state_labels | ( | self | ) |
Check if the pMC model has a state labels.
| def pomdp_solver.PMC.has_transition_matrix | ( | self | ) |
Check if the pMC model has a transition matrix.
| def pomdp_solver.PMC.instantiate_parameters | ( | self, | |
| parameter_values | |||
| ) |
Instantiate a pMC.
| parameter_values | List of values to instantiate parameters. |
| pomdp_solver.PMC.model |
The pMC model.
Collect the parameters.
Check if the number of parameters equals the number of values.
Create a dictionary of parameters to values
Instatiate the model