.def("get_choice_index",[](SparseMdp<double>const&mdp,uint64_tstate,uint64_tactOff){returnmdp.getNondeterministicChoiceIndices()[state]+actOff;},py::arg("state"),py::arg("action_offset"),"gets the choice index for the offset action from the given state.")
.def("get_choice_index",[](SparseMdp<double>const&mdp,uint64_tstate,uint64_tactOff){returnmdp.getNondeterministicChoiceIndices()[state]+actOff;},py::arg("state"),py::arg("action_offset"),"gets the choice index for the offset action from the given state.")
@ -212,7 +212,7 @@ void define_sparse_model(py::module& m) {
;
;
py::class_<SparsePomdp<double>,std::shared_ptr<SparsePomdp<double>>>(m,"SparsePomdp","POMDP in sparse representation",mdp)
py::class_<SparsePomdp<double>,std::shared_ptr<SparsePomdp<double>>>(m,"SparsePomdp","POMDP in sparse representation",mdp)
.def_readwrite("state_labeling",&SparseModelComponents<double>::stateLabeling,"The state labeling")
.def_readwrite("reward_models",&SparseModelComponents<double>::rewardModels,"Reward models associated with the model")
.def_readwrite("reward_models",&SparseModelComponents<double>::rewardModels,"Reward models associated with the model")
.def_readwrite("choice_labeling",&SparseModelComponents<double>::choiceLabeling,"A vector that stores a labeling for each choice")
.def_readwrite("choice_labeling",&SparseModelComponents<double>::choiceLabeling,"A vector that stores a labeling for each choice")
.def_readwrite("state_valuations",&SparseModelComponents<double>::stateValuations,"A vector that stores for each state to which variable valuation it belongs")
.def_readwrite("state_valuations",&SparseModelComponents<double>::stateValuations,"A vector that stores for each state to which variable valuation it belongs")