Code Monkey home page Code Monkey logo

Comments (3)

Svalorzen avatar Svalorzen commented on July 22, 2024

Makes sense. I've now set up the basic infrastructure for duplicating all tests in Python, to serve as examples and to check that everything works alright. Between the committed tests there is both one for QLearning, and one for ValueIteration.

In general most C++ methods here now are templated, and depend on the type of the model being solved (this because in C++ in theory you can implement your own model to perform better given that you know how your model should work). This means that the classes cannot by themselves exist in Python naked.

Instead, we create a bunch of their instantiations based on the model they are solving. For example, if you want to use ValueIteration with the Python MDP Model, you'd use MDP.ValueIterationModel. If you want to use the SparseModel, you'd use MDP.ValueIterationSparseModel. Not very pretty, but works out.

For the docs, I've now added documentation to the MDP.Model class. Unfortunately this takes a lot of time since it must be embedded in the C++ code as strings, and it is pretty much always the same as the C++ comments (not always/some additional clarification needed aside). But slowly I hope I'll be able to put all comments in the Python classes too. In the meantime I have removed the C++ docs from the python help which should make what little docs Boost Python has by default a little more readable.

from ai-toolbox.

aukejw avatar aukejw commented on July 22, 2024

See this pull request

from ai-toolbox.

Svalorzen avatar Svalorzen commented on July 22, 2024

Closing this as the example was merged.

from ai-toolbox.

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.