Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add float_precision parameter to to_pomdp_file() #29

Merged
merged 1 commit into from
Jun 9, 2023

Conversation

Hororohoruru
Copy link
Contributor

As discussed in #28, a particular case where the uniform belief over states is a periodic number (0.083333333 in this case) created an error when running SARSOP on the .pomdp file created by to_pomdp_file(). This was because the float to str conversion defaults to 6 decimals.

Adding a parameter to control for this precision in to_pomdp_file() fixed the issue.

README.rst Outdated Show resolved Hide resolved
@zkytony zkytony merged commit ec6e043 into h2r:dev-1.3.3 Jun 9, 2023
zkytony added a commit that referenced this pull request Jul 25, 2023
* allow updating rollout policy

* NotImplemented->NotImplementedError in oopomdp.pyx

* s -> sp in ValueIteration (#20)

* add __init__ signature for Environment in comments to be visible in docs

* added float_precision argument to to_pomdp_file (#29)

* add readme instruction to run load_unload

* oops - correction

* Fix cpdef on variable

* version bump; sorting MANIFEST.in

* fix setup cython extension in pomdp_problems

* auto-generate manifest to include .pyx

* update changelog

* Fix wheel build

* docs html build

* change set to list in tiger to tame random.sample in python 3.11

* docs html build

* bump minimum python requirement

* update docs accordingly

---------

Co-authored-by: Juan Jesús Torre Tresols <juanjesustorre@gmail.com>
Co-authored-by: Jiuguang Wang <jiuguangw@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants