Comments (2)
I would suspect the linked libraries. For example, matrix multiplications (PCA) are more efficient with Intel MKL libraries which are probably integrated in Visual Studio. https://blog.revolutionanalytics.com/2014/10/revolution-r-open-mkl.html
https://simplystatistics.org/2016/01/21/parallel-blas-in-r/
from bhtsne.
Thank you @SamGG for your response!
Profiling the binary with perf led to the conclusion that in particular computeNonEdgeForces (as also noticed here) is the most time-consuming.
Long story short: I couldn't dig the root cause for this, but I've applied the performance improvements mentioned in this pull request (Excellent writeup btw, kudos to tavianator!
Numbers of the mnist are now identical on windows/ubuntu, see below:
Computing input similarities...
Building tree...
- point 0 of 70000
- point 10000 of 70000
- point 20000 of 70000
- point 30000 of 70000
- point 40000 of 70000
- point 50000 of 70000
- point 60000 of 70000
Input similarities computed in 700.94 seconds (sparsity = 0.002964)!
Learning embedding...
Iteration 1: error is 114.707556
Iteration 50: error is 114.707555 (50 iterations in 36.25 seconds)
Iteration 100: error is 114.707555 (50 iterations in 36.45 seconds)
Iteration 150: error is 114.705697 (50 iterations in 38.57 seconds)
Iteration 200: error is 107.418164 (50 iterations in 37.08 seconds)
Iteration 250: error is 5.918315 (50 iterations in 36.25 seconds)
Iteration 300: error is 4.685798 (50 iterations in 35.77 seconds)
Iteration 350: error is 4.293142 (50 iterations in 33.82 seconds)
Iteration 400: error is 4.059164 (50 iterations in 34.66 seconds)
Iteration 450: error is 3.895986 (50 iterations in 35.09 seconds)
Iteration 500: error is 3.770166 (50 iterations in 33.31 seconds)
Iteration 550: error is 3.669497 (50 iterations in 34.37 seconds)
Iteration 600: error is 3.586112 (50 iterations in 33.95 seconds)
Iteration 650: error is 3.514839 (50 iterations in 34.67 seconds)
Iteration 700: error is 3.453197 (50 iterations in 34.06 seconds)
Iteration 750: error is 3.398859 (50 iterations in 32.85 seconds)
Iteration 800: error is 3.350613 (50 iterations in 33.65 seconds)
Iteration 850: error is 3.307334 (50 iterations in 34.55 seconds)
Iteration 900: error is 3.268252 (50 iterations in 33.63 seconds)
Iteration 950: error is 3.232840 (50 iterations in 33.08 seconds)
Iteration 1000: error is 3.200317 (50 iterations in 33.95 seconds)
Fitting performed in 696.02 seconds.
from bhtsne.
Related Issues (20)
- Usage of random generator(s) in the source HOT 2
- How can i visualize the image data like this? HOT 1
- bhtsne.py:135: ComplexWarning: Casting complex values to real discards the imaginary part HOT 1
- Butterfly effect HOT 3
- Can not use the python wrapper in Windows
- transposition based on input method HOT 3
- Why is the exact algorithm 10 times faster? HOT 8
- Dimension problem HOT 3
- Can't compile the .exe with visual studio 9.0 HOT 9
- Pytorch version? HOT 4
- python wrapper - Cost for each sample
- Performance difference to the old version HOT 1
- C API HOT 3
- Bhtsne for large datasets HOT 1
- t-SNE for Java/Scala/Kotlin/Clojure
- Is there a rule of thumb for the lower bound on the perplexity?
- Why use zeroMean in gradient update?
- Finding P and Q matrices
- Graphics problem with tsne algorithm
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bhtsne.