#Graphing latent space in WandB

3 messages · Page 1 of 1 (latest)

dark parcel
#

I have four arrays of equal length:

  1. Images
  2. Their locations in 2D space
  3. Other images
  4. Their locations in 2D space

I want to output this data to a graph in WandB that is a scatter plot containing:

  1. Dots at the locations of (2) with their sprites being their corresponding image in (1)
  2. Dots at the locations of (4) with their sprites being their corresponding image in (3)
  3. Lines connecting each location in (2) to the corresponding dot at the same index in (4)

Steps 1. and 2. would form a graph that looks like this: https://web.archive.org/web/20171105032504/https://getdango.com/postimg/semantic-space.html

WandB appears to be using Vega (https://vega.github.io/vega/) for custom graphs but even there, I can't find a way to either set custom sprites for each dot nor draw arbitrary lines. Is there a way or would it be better to draw it manually in matplotlib or Plotly while still having it not be a static image so that it can be interactively zoomed?

#

Looks like it's possible to output HTML files too
The example I sent uses bokeh, perhaps I could use it here too

#

Scatter markers: Bokeh includes a large variety of markers for creating scatter plots. For example, to render circle scatter markers on a plot, use the circle() method of figure(): Similarly, use t...

Single lines: The example below shows how to generate a single line glyph from one-dimensional sequences of x and y points using the line() glyph method: Step lines: For some kinds of data, discret...