question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for alternative axis projection metrics in plots

See original GitHub issue

Consider that emb is an embedding set and we run emb.plot(x_axis='man', y_axis='woman'). This would compute the normalized scalar projection (i.e. operator >) of every embedding in emb onto embeddings for 'man' and 'woman' so that they could be plotted in a 2D coordinate system.

Now the question is: why we should only stick to normalized scalar projection? For example, one might want to use another measure such as cosine similarity or euclidean distance to plot the embeddings.

  • First of all, does this make sense? (to me, yes!)
  • Secondly, is there currently an easy and built-in way to achieve this? (AFAIK, no!)
  • Thirdly, is adding an argument to plot and plot_interactive methods to support this a good way? e.g. emb.plot(x_axis='man', y_axis='woman', axis_metric='cosine').

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mkazecommented, Sep 4, 2020

I’m opening this issue because technically the issue should also be added to the plot_interactive methods.

@koaning Right! That’s why I mentioned “partially” in #192 😉

0reactions
koaningcommented, Sep 4, 2020

I’m opening this issue because technically the issue should also be added to the plot_interactive methods.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Essential Chart Types for Data Visualization | Tutorial by Chartio
The axis variables can be numeric or categorical; the grid is created by dividing each variable into ranges or levels like a histogram...
Read more >
Add Axes for Multiple Measures in Views - Tableau Help
Create individual axes for each measure. Blend two measures to share an axis. Add dual axes where there are two independent axes layered...
Read more >
The Art of Effective Visualization of Multi-dimensional Data
This is basically an alternative approach to visualizing the same plot which we plotted previously for five dimensions. While the additional ...
Read more >
How to Select a Model For Your Time Series Prediction Task ...
Working with time series data? Here's a guide for you. In this article, you will learn how to compare and select time series...
Read more >
Chapter 4. Visualization with Matplotlib - O'Reilly
Matplotlib was originally written as a Python alternative for MATLAB users, ... For all Matplotlib plots, we start by creating a figure and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found