Comments (9)
Mmh, I'm still a bit baffled how to run the example. First, I can't import via default:
import tsne from '@tensorflow/tfjs-tsne';
I had to do it like this:
import * as tsne from '@tensorflow/tfjs-tsne';
But when I tried to run the example given in the README. I also had to change
const tsneOpt = tsne.optimizer(data);
to
const tsneOpt = tsne.TSNEOptimizer(data);
and I got the following error:
TypeError: this.log is not a function[Learn More]
main.js%20line%203403%20%3E%20eval:114:9
TSNEOptimizer
webpack:///./node_modules/@tensorflow/tfjs-tsne/dist-es6/tsne_optimizer.js?:114:9
Something I do wrong. I compile the lib with the babel-loader in my webpack:
{ enforce: 'pre', test: /\.js$/, loader: 'babel-loader?cacheDirectory=true', include: path.join(__dirname, 'node_modules/@tensorflow/tfjs-tsne') }
I would be really glad if you could help and point out what's going wrong!
Btw I run ubuntu 17.10 and node 9.4.0
Thank You in advance!
Jan
from tfjs-tsne.
@DinoJay thanks for reporting this. I think we forgot to update the readme in between a change to the API. I'll take a look and fix it.
from tfjs-tsne.
I have a PR out now, apologies for that. In the meantime you can look at this demo https://github.com/tensorflow/tfjs-tsne/tree/master/examples/synthetic_data as a reference.
from tfjs-tsne.
@DinoJay fixed now. Let me know if you have any more issues getting it up and running.
from tfjs-tsne.
Thanks a lot for the super fast update on this. Unfortunately, when I try run the synthetic data example it drags down my computer. Even for very few input points it take minutes to produce a result. I ported the example to https://beta.observablehq.com/@dinojay/tsne. Also there, it's super slow on Firefox 60. Can you check what's going on?
Thanks a lot!
Best,
Jan
from tfjs-tsne.
@Nicola17 if you have any cycles could you help out @DinoJay?
from tfjs-tsne.
@DinoJay could you give a bit of into about your system? Particularly what kind of graphics card you have on it. I tried your notebook on my laptop and both firefox 60 and chrome it was plotting results in seconds.
from tfjs-tsne.
ok, this is weird. Actually, the notebook freezes my whole browser. Only in rare cases it produces a result. I run ubuntu 17.10 on a Dell XPS 13 9360 (075B) with Intel® Core™ i7-7500U CPU @ 2.70GHz × 4 and Intel® HD Graphics 620 (Kaby Lake GT2). Even though the graphics card is integrated it should be decent enough to run it?
from tfjs-tsne.
Sorry, I was OOO last week.
I should be able to try it on an XPS 13 with Ubuntu 16.04
In theory it should run without problems
from tfjs-tsne.
Related Issues (20)
- some details about dataset_util.ts
- Maximum perplexity must be computed based on MAX_VARYING_VECTORS
- Lower default perplexity value
- Cannot read property 'embedding' of undefined HOT 2
- CUDA/OpenGL (non-WebGL) implementation HOT 1
- Is it possible to use tfjs-tsne to reduce to 3 dimensions instead of 2? HOT 1
- T-SNE in browser example throws error HOT 6
- Misspelling in documentation at https://github.com/tensorflow/tfjs-tsne HOT 2
- Nearly every coordinate is 0.5, 0.5 HOT 3
- Unclear cause of "Requested texture size [19991x2] greater than WebGL maximum..."
- Requested texture size [0xInfinity] is invalid. HOT 1
- an example where knn is super slow & model is not converging HOT 4
- Update NPM build
- "Tensor is disposed" error in synthetic_data example HOT 2
- Comparing compute and iterable t-SNE
- Support for tfjs-node HOT 4
- README.md script tag instructions don't work with tfjs v1 HOT 5
- Using script tag sample code leads to an exception - works with older version of TFJS
- The demo crashes with error: "Failed to link vertex and fragment shaders" HOT 2
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 tfjs-tsne.