Code Monkey home page Code Monkey logo

Comments (9)

ly63513 avatar ly63513 commented on July 19, 2024

+1

from bhtsne.

lvdmaaten avatar lvdmaaten commented on July 19, 2024

I don't have Visual Studio (or a Windows machine), so I cannot reproduce the issue easily. Can you try and add the following line here and let me know if that resolves the issue?

#include <algorithm>

from bhtsne.

MariusLTU avatar MariusLTU commented on July 19, 2024

Thanks for your answer !
Unfortunately I did it and it still doesn't work.

from bhtsne.

lvdmaaten avatar lvdmaaten commented on July 19, 2024

Oh, sorry! In addition to the change you just made, can you do a global replace of fmax by std::max (there are two occurrences as far as I can tell)?

from bhtsne.

MariusLTU avatar MariusLTU commented on July 19, 2024

I got new errors for sptree.cpp(366):

error C2780: expects 3 arguments - 2 provided
see declaration of 'std::max'

error C2782: template parameter '_Ty' is ambiguous
see declaration of 'std::max'
could be 'unsigned int"
or 'int'

from bhtsne.

lvdmaaten avatar lvdmaaten commented on July 19, 2024

Ah! Can you also change the int here into unsigned int?

If that is insufficient, you could try explicitly templating the std::max call: depth = std::max<unsigned int>(depth, children[i]->getDepth());

from bhtsne.

MariusLTU avatar MariusLTU commented on July 19, 2024

Sorry for the late response !
the unsigned int looks like it solved the problem, the executable was created in the windows folder.
But when I open it, nothing happens...

from bhtsne.

lvdmaaten avatar lvdmaaten commented on July 19, 2024

Are you calling the executable through one of the (Matlab, Python, R) wrappers? These wrappers dump a little data file that the executable consumes. Without the data file, the executable will presumably terminate immediately.

from bhtsne.

MariusLTU avatar MariusLTU commented on July 19, 2024

I tried to run it with spyder but it could not compile it:

"TypeError: compile() expected string without null bytes"

from bhtsne.

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.