Code Monkey home page Code Monkey logo

Comments (3)

Svalorzen avatar Svalorzen commented on July 3, 2024

The warnings unfortunately do not depend from me: the Eigen library seems to be doing things with enums which do not play nicely with g++-7.0. They have an open bug report on this, and I hope they will fix it soon. If you actually check you'll see the warnings are always pretty much the same two things, inside the Eigen library.

It is definitely NOT ok that both the Python example nor the C++ version with a 5x5 grid are not working as expected. If the solving process has converged you should expect to see optimal behavior always (if the configuration of the problem was correct), so I'm going to check on this ASAP.

In general is not that Python is slower in solving the problem. It's mostly how the code creates the transition/reward functions ininitally from Python requires lots of loops, which Python dislikes, and so ends up taking a ton of time creating the model and importing it into C++. After that, it's instant.

I'll let you know when things are working properly again, thanks!

from ai-toolbox.

Svalorzen avatar Svalorzen commented on July 3, 2024

Hey, I think I found the problem.

I while ago I did some work transitioning from Boost data structures to Eigen, and forgot that Eigen does not automatically zero its matrices. This resulted in a policy with generally random values - it was luck that it worked at all in the normal case!

I've tested this now and it seems to work fine. Let me know if it works or if you have any more problems!

from ai-toolbox.

filippobistaffa avatar filippobistaffa commented on July 3, 2024

Yup, it seems to work fine now. Thanks!

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.