Comments (7)
just to add-on to my previous post.. that same problem occurs for me in Python 3.x, and the solution is to AGAIN.. recompile numpy with openBLAS on Mac platforms.. hope that helps
from bhtsne.
You may want to try #69 which removes the need for writing data to files and forking a new process in the first place.
I'm planning to add an FFI-based solution for Python soon that will do the same without the Cython dependencies.
from bhtsne.
+1
Getting the same error here, on Mac OS Python 2.7.12. @rjurney you mentioned it works on 2.7, did you get it to just work out of the box?
from bhtsne.
I have noticed this can occur when the job failed, and the resulting file is empty.. go to that location and double check what's there if you can.
For me this occurs in what looks like a crash at https://github.com/lvdmaaten/bhtsne/blob/master/bhtsne.py#L110
I debug line by line and it is on that line things abruptly crash in OSX
update : a crash in numpy is the culprit for me seeing this error you have.
from bhtsne.
I cannot get this to run at all inside Jupyter Notebook
(probably has to do with the underlying numpy issue(s) .. so I've avoided running this wrapper in anything but plain .py
files.
from bhtsne.
Line 210 in the Python wrapper seems to suggest that running the code via a Jupyter notebook is not recommended:
bhtsne.py (210): print("Please run this program directly from python and not from ipython or jupyter.")
As @EMCP already mentioned, the issue with numpy may be the reason for the crash. This thread also suggests there is an issue with calling the fork()
function on line 199 of the Python wrapper. A questionable workaround on OS X (which I have tested) is to simply run the code without using a separate process to initiate the bhtsne
calculations. Commenting out the statements that have to do with fork()
then correctly use the bhtsne
binary. However, mind that this function is explicitly used for memory concerns, so this workaround may not work if the data is very large.
from bhtsne.
I added a python wrapper based on boost, which process smoothly and visualize results at last. There is not need to recompile blas/numpy/etc. Hope this helps!
from bhtsne.
Related Issues (20)
- Help ME! thanks! HOT 1
- 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
- Performance difference Windows/Ubuntu HOT 2
- 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
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.