Code Monkey home page Code Monkey logo

Comments (2)

Svalorzen avatar Svalorzen commented on June 24, 2024

Hey,

this doesn't look like a CMake problem, looks more like a bug in Apple Clang. It's trying to compile a file but gives an error, but the code is correct. Does this only happen when setting Python to 3, or also with Python 2? From what I am seeing the problem looks to be completely unrelated to Python.

If you want, you could go at line 161 in file src/Factored/Bandit/Algorithms/Utils/UCVE.cpp and try to replace

            newFactorCrossSum.erase(
                std::remove_if(begin + 1, bound, [max, x_u = x_u, logtA12 = logtA12](const UCVE::Entry & e) { return computeValue(e, x_u, logtA12) <= max; }),
                end
            );

with

            auto tmpMax = max;
            newFactorCrossSum.erase(
                std::remove_if(begin + 1, bound, [tmpMax, x_u = x_u, logtA12 = logtA12](const UCVE::Entry & e) { return computeValue(e, x_u, logtA12) <= tmpMax; }),
                end
            );

This might side-skip the bug. Let me know!

from ai-toolbox.

adamhall avatar adamhall commented on June 24, 2024

Thanks for the quick reply! I tried using python2.7 and got the same issue during make. So it not's python related.

I then made the updates to UCVE.cpp as you suggested above, and built using python37. It worked! And all 66 tests passed. Thanks!

I'll let you know if I have any further problems working with the library in python.

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.