Coder Social home page Coder Social logo

Comments (9)

DinoJay avatar DinoJay commented on May 31, 2024

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.

tafsiri avatar tafsiri commented on May 31, 2024

@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.

tafsiri avatar tafsiri commented on May 31, 2024

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.

tafsiri avatar tafsiri commented on May 31, 2024

@DinoJay fixed now. Let me know if you have any more issues getting it up and running.

from tfjs-tsne.

DinoJay avatar DinoJay commented on May 31, 2024

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.

nsthorat avatar nsthorat commented on May 31, 2024

@Nicola17 if you have any cycles could you help out @DinoJay?

from tfjs-tsne.

tafsiri avatar tafsiri commented on May 31, 2024

@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.

DinoJay avatar DinoJay commented on May 31, 2024

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.

Nicola17 avatar Nicola17 commented on May 31, 2024

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)

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.