Coder Social home page Coder Social logo

Handling of `nthreads` about fit-sne HOT 2 CLOSED

klugerlab avatar klugerlab commented on June 8, 2024
Handling of `nthreads`

from fit-sne.

Comments (2)

linqiaozhi avatar linqiaozhi commented on June 8, 2024
  1. It was implemented this way while ago in #6, and I never got around to changing it. You're right though, there is no reason why this parameter should passed differently than the others.

  2. and 3. Fixed in #41. This was a particularly important catch, as the computeError() were not multithreading at all, as you reported in #37. On my machine with 12 cores (2 threads each), this takes the compute error from about 15 seconds to 1 second, as it parallelizes very nicely.

  3. After #41, the only loops that do not use PARALLEL_FOR are the ones where we have a progress bar that should only output on a single thread (it checks if t==0). I don't know how to do that in a way that works for both OpenMP and C++11 threads, so I just hardcode it as C++11 threads for now. Should be changed in the future though.

Thanks @dkobak!

from fit-sne.

dkobak avatar dkobak commented on June 8, 2024

OK great! I think (1) is not important and it can stay like that. I close this.

from fit-sne.

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.