Git Product home page Git Product logo

tsne-visualization's Introduction

T-SNE Visualizer

Uses tSNEJS from kaparthy to compute lower dimensional embeddings and visualize locally on your own data sets.

Configuration

config.json defines all the parameters, including the data set to use. Parameters are:

These options control the t-sne algorithm.

  • epsilon The learning rate for t-sne.
  • perplexity The number of neighbours to consider. Smaller values tend to give more fine grained clusters.

These options control the rendering

  • embedWindowX The width of render area.
  • embedWindowY The height of render area.
  • enable3D: Embeds data in 3D space when set to true, 2D otherwise.

These options are usually tweaked together. Larger image sizes will require greater cameraZ.

  • objectSize The object size.
  • cameraZ The initial camera position on z-axis
  • spreadFactor: Defines how spread out the data is. Depending on how small/large t he weight vectors are, the computed (x, y) values copuld end up being too clumped together. Think of this as an overall zoom factor to make your data look good. Try experimenting with values that are a factor of 10.

These options are used to provide data.

  • data The path to json that defines the data. The json should contain labels, (optional) images and weights. See data/data.json for an example.
  • limit Sometimes the frame rate is pretty bad for large data sets. This setting lets you limit the number of rows that should be considered for the visualization.

Running locally

Setup config.json to point to the data. See provided data/data.json for examples. Launch a local python server using.

$ ./run.sh

Todo

  • Offload computation to web workers and only perform rendering on the main thread.
  • Auto detect spread factor. Multiply by a factor of 10 for the lowest x, y, z to make it > 1.

tsne-visualization's People

Contributors

raghakot avatar

Watchers

James Cloos avatar Naimish Agarwal avatar

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.