Comments (3)
Okay. A couple of questions. (1) Have you updated to the version that has the planner throw an exception if there is no valid plan? (2) If so, since the planner should have thrown a runtime exception if it didn't find a plan to the goal, I'm guessing the policy is being invoked somewhere where it is undefined. Which Policy object specifically are you using? Is it a SDPlannerPolicy? That specific policy implementation would definitely cause the problem if you query a state for which the planner has no plan (returns null), whereas DDPlannerPolicy will call the planner again for any states for which there is no plan.
I can do two things; (1) make sure the followAndRecordPolicy method throws a more meaningful exception (e.g., policy undefined) and (2) make SDPlannerPolicy throw a similar exception instead of returning null. However, I want to make sure I have it tracked in the right place.
from burlap.
Switching to DDPlannerPolicy helped! And if there is an instance where it can't plan, it will throw the planner exception.
I think gratuitous exceptions will help, especially for people like me who aren't experienced in designing domains.
from burlap.
Awesome :)
So that does probably mean it was queried for a state not in the original plan. I've added the additional exceptions to the Policy followAndRecordPolicy method as well as the getAction method (and corresponding distribution method) for the SDPlannerPolicy. I'll merge with master in a minute.
from burlap.
Related Issues (20)
- Q Learning Stochastic Movements HOT 5
- PolicyIteration error, type mismatch? HOT 1
- Cumulative probability incorrect in EMinMaxPolicy.getActionDistributionForState() ? HOT 1
- Cumulative probability incorrect in ECorrelatedQJointPolicy.getActionDistributionForState() ? HOT 1
- Is this a bug in SarsaLam implementation? HOT 2
- Hashing Performance in SimpleHashableState HOT 4
- DiscretizingMaskedHashableStateFactory is missing methods for handling config HOT 1
- StochasticGames SCPSolver does not work with Java 64-bit under Windows x64 HOT 2
- Renaming objects in a GenericOOState changes the order in objectsByClass list
- is the website source available?
- PerformancePlotter TRIAL_AVERAGES_ONLY Mode
- Null action issue on allApplicableActionsForTypes in ActionUtils.java
- Burlap incompatibilities HOT 1
- ROS - Continous Domain
- Possible bug in "performReachabilityFrom" function in PolicyIteration.java
- Actions are not published after terminal state
- StatePainter's Graphics2D Context Doesn't Update
- getTotalValueIterations() for ValueIteration?
- PolicyUtils.Rollout(Policy, State, SampleModel) will hang when policy does not reach goal state
- Agent can try to move out of bounds, throwing an ArrayIndexOutOfBoundsException HOT 1
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 burlap.