Coder Social home page Coder Social logo

hpicgs / bhtsne Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lvdmaaten/bhtsne

2.0 2.0 0.0 3.24 MB

Barnes-Hut t-SNE

License: MIT License

Python 11.03% MATLAB 0.13% C++ 83.98% CMake 2.17% Makefile 0.71% M4 0.60% C 0.42% Shell 0.93% Batchfile 0.03%

bhtsne's People

Contributors

apbard avatar arshak avatar by321 avatar daniel-amadeus avatar leshaker avatar lukaswagner avatar lvdmaaten avatar make avatar mrucker avatar pascalhpi avatar rohit-gupta avatar scheibel avatar sg-s avatar varunagrawal avatar yangqing avatar zhmz90 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

bhtsne's Issues

vectorization

use intrinsics for more efficient processing of vectorizable for loops

cmd interface

[--algorithmParameter value]* [-outputOption]* [--outputFile value] fileName
The order of parameters and options is not relevant.

  • copy and adjust argumentParser from cppassist
  • implement main
  • test

modern C++

refactor C-style C++ to modern C++ using features from newer standards

  • tsne
  • sptree
  • vptree

TSNE interface

<param> and set<param> getter and setter for every algorithm parameter
load<fileExtension> methods for each supported extension (e.g. legacyDat, csv, our binary)
run method; or better name
save<fileExtension> methods for each supported extension (e.g. svg, csv, [legacy]binary)

TODO:

  • write tests
  • implement interface
  • write comments

documentation

  • readme
  • doxygen interface documentation
  • latex manual? see #15
  • improve perplexity explanation

test data

add the data sets again but ignore them for the launchpad package

Use vector SIMD library

Many phases/steps from the algorithm perform an operation on all dimensions of a data point.
Using a library such as Vc, automatic vectorization is enforced.

Refactor symmetric matrices

The goal is to store at leat n * (n-1)/2 values and compute them at most.

Example:

  • TSNE::computeSquaredEuclideanDistance

time measurement

implement time measurement, so performance before and after refactoring/optimization can be compared

  • measure legacy implementation
  • measure current implementation

offloading

figure out, whether using the gpu can improve performance, and if it does, implement that

Consolidate loops and vectorize

Example:

  • TSNE::computeGaussianPerplexity the three inner loops computing cur_P, sum_P, and H may get consolidated and vectorized.

parallelization

figure out how the algorithm can be parallelized and implement that

tests

write tests, so mistakes are easily caught when refactoring and optimizing

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.