Comments (4)
1
I'm not sure whether you noticed that every function is documented. If in the Python command line you type
help(AIToolbox.POMDP.PBVI)
you'll get a full explanation of the class and methods. The docs are also pretty much the same as the equivalent C++ version, so feel free to go over there as well.
Defining a VFun in Python is possible, but in general these types are symmetric to the C++ ones (when possible, sometimes it is not possible to build them in Python directly, depending on what I have wrapped). It's mostly a list of lists. The documentation for the lower level stuff exists, but might be a bit more hidden. In general I would advise looking around a bit in the C++ header files (in the include
folder) to orient yourself even if you do not plan to use C++.
In any case, the docs certainly could use improvement, so if you feel something is unclear and have ideas to make them better, please do open an issue and we can discuss how you can contribute :)
2
The toolbox at the moment does not include changing action spaces. This was a design decision that I made at the beginning, as with action spaces that depend on the current state every single algorithm needs to be aware of that and have code which handles lists of actions for each state.
You can emulate that by simply having the north action do something else. This might make learning/planning a bit more inefficient since you have dupes, but trust me when I say that it greatly simplifies the code of the library. Since I'm mostly maintaining this alone, I figured it would be a reasonable tradeoff.
from ai-toolbox.
right that make sense!
so is it appropriate that every time i use PBVI, i just pass an empty VFun to it?
and one more question is that how will the toolbox deal with it if i want the markov process to stop when hitting certain state?
from ai-toolbox.
The default parameter should be empty anyway, so I think you can also not pass anything and it should work the same.
For planning algorithms, I usually just have my MDP return the same state over and over with 0 reward. For learning, you just stop the episode when you reach the terminal state.
from ai-toolbox.
alright! Problems solved! you are really helpful! :)
from ai-toolbox.
Related Issues (20)
- Python module problem HOT 26
- Save POMDP policy HOT 6
- Sparse Matrix's on POMDP model HOT 22
- Improve serialization for MDP and POMDP Sparse Models HOT 1
- Problem with make HOT 5
- Make cannot find .hpp file in Boost HOT 2
- Errors when compiling tutorials HOT 5
- Can't find Lpsolve when run cmake HOT 9
- Using AI-Toolbox with OMNeT++ HOT 2
- Make issue HOT 9
- Not able to find "compare" file HOT 3
- Trouble installing and running AIToolbox HOT 9
- about LP_Solve HOT 13
- error C3779: 'AIToolbox::IndexMapIterator<IdsIterator,Container>::operator *': a function that returns 'auto' cannot be used before it is defined HOT 11
- Better Project Setup Tutorial HOT 6
- C++: error: expected โ)โ before โelementsNโ HOT 10
- Problems when building the library HOT 4
- Sparse Matrix: Space Time Complexity while assigning and accessing an element. HOT 1
- Can't build because of lpslove HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ai-toolbox.