Code Monkey home page Code Monkey logo

Comments (5)

jmacglashan avatar jmacglashan commented on July 18, 2024

The discrete value object creates an array with various values that are set. These values might just be proxies for integers themselves, but the index into the array of values must still be positive, because it doesn't know that they're just a sequence of ints.

Alternatively, if you just want a very large number of integers (like your -5000 to +5000 example), you should use the IntValue type instead of the DiscreteValue type.

from burlap.

nilbus avatar nilbus commented on July 18, 2024

Thanks! INT type values was what I really needed.

from burlap.

nilbus avatar nilbus commented on July 18, 2024

Tangentially related, the MDP I am testing has an agent that moves stochastically on this integer line, with probabilities based on the actions taken. You could think about it like a monetary account balance that changes over time. Is there something built into Burlap that will graphically visualize this? I didn't find anything obvious, but I did notice that you provide a GraphDefinedDomain. My current thought is to take the data written to file from policy.evaluateBehavior.writeToFile and graph it externally.

from burlap.

jmacglashan avatar jmacglashan commented on July 18, 2024

Hmm probably not. Each visualizer is pretty specific to its domain so I'm not sure if there is something that can be easily co-opted to a 1D attribute visualizer. GraphDefinedDomain is also currently the only domain lacking a visualizer because I haven't yet decided what the best way to visualize arbitrary graphs is (graph visualization is effectively a research topic itself with many approaches).

It probably wouldn't be difficult for you to write your own if it's just a 1D visualization, but dumping to a file and using external graph tools would surely work as well.

from burlap.

nilbus avatar nilbus commented on July 18, 2024

That makes sense. Thanks again.

from burlap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.