Skip to content

Julia interface to Van der Maaten's Barnes-Hut implementation of t-Distributed Stochastic Neighbor Embedding

License

Notifications You must be signed in to change notification settings

nassarhuda/BHTsne.jl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BHTsne

Build Status

This package is a Julia interface to Van der Maaten's Barnes-Hut C++ implementation of t-Distributed Stochastic Neighbor Embedding. There are also other wrappers available in Python, Matlab, R and Torch.

Installation

Pkg.clone("https://github.com/zhmz90/BHTsne.jl.git")

Usage

	using BHTsne
	using RDatasets	
	using Gadfly
	
	iris = dataset("datasets", "iris") 	
	samples = convert(Array, iris[:,1:4])
	labels  = convert(Array, iris[:,5])
	
	results = bh_tsne(samples, perplexity=30, verbose=true)
	
	p = plot(x=results[:,1], y=results[:,2], color=labels)
	draw(PNG("tsne_of_iris.png", 8inch, 6inch), p)

tsne_of_iris.png

APIs

	function bh_tsne(samples; no_dims=2, initial_dims=50, perplexity=50, theta=0.5, randseed=-1, verbose=false)

References

About

Julia interface to Van der Maaten's Barnes-Hut implementation of t-Distributed Stochastic Neighbor Embedding

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 93.5%
  • Julia 6.3%
  • Makefile 0.2%