Git Product home page Git Product logo

mnist-tensorboard-embeddings's Introduction

mnist-tensorboard-embeddings

Build Status

TensorBoard is a suite of web applications for inspecting and understanding your TensorFlow runs and graphs. The TensorFlow documentation isn't extremely explicit with the how-to visualizations. The code within mnist_t-sne.py is a working example of how to implement a 3-dimensional visualization with the MNIST dataset and it's embedded images.

The full tutorial is on the TensorFlow website.

By default, the Embedding Projector performs 3-dimensional principal component analysis, meaning it takes high-dimensional data and tries to find a structure-preserving projection onto three dimensional space. Basically, it does this by rotating the data so that the first three dimensions reveal as much of the variance in the data as possible. There's a nice visual explanation here. Another extremely useful projection is t-SNE.

Requirements

Sample output

Run the mnist_t-sne.py file from within its directory to generate the embeddings and visualisation.

Once you have event files, run TensorBoard and provide the log directory. If you're using a precompiled TensorFlow package (e.g. you installed via pip), run:

tensorboard --logdir=path/to/logs

This should print that TensorBoard has started. Next, connect to http://localhost:6006.

TensorBoard requires a logdir to read logs from. For info on configuring TensorBoard, run tensorboard --help.

TensorBoard can be used in Google Chrome or Firefox. Other browsers might work, but there may be bugs or performance issues.

The second file, mnist_with_summaries.py, is a full example of the embedding,visualization and a subsequent model generation. This second file mostly mirrors the official TensorFlow tutorial file.

Contribution

Your comments (issues) and PRs are always welcome.

mnist-tensorboard-embeddings's People

Contributors

ecefamily avatar normanheckscher avatar

Watchers

 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.