Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Matrice Visualizer #4

Open
hediet opened this issue Feb 11, 2020 · 7 comments
Open

Add a Matrice Visualizer #4

hediet opened this issue Feb 11, 2020 · 7 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects

Comments

@hediet
Copy link
Owner

hediet commented Feb 11, 2020

Implement a visualizer for matrices, i.e. for two dimensional arrays.

@hediet hediet added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Feb 11, 2020
@hediet hediet added this to Considered in Backlog Mar 2, 2020
@Clement-Jean
Copy link

Im curious about where are the other visualizers. im interested in doing this but I dont know where to start

@hediet
Copy link
Owner Author

hediet commented Aug 29, 2020

Awesome ;) You can find them here. Reach out if you have questions!

@hediet
Copy link
Owner Author

hediet commented Aug 29, 2020

I just added some documentation here.

@xenirio
Copy link

xenirio commented Oct 13, 2020

Let me try for doing this feature.

@hinogi
Copy link

hinogi commented Oct 2, 2021

@hediet Is this still relevant since there is already the grid visualization?

@hediet
Copy link
Owner Author

hediet commented Oct 4, 2021

I think the grid visualization might suffer from performance for large matrices.
But yeah, the grid visualizer might be a replacement for this.

@vedhasam
Copy link

vedhasam commented Aug 18, 2022

+1 for the open issue/the feature request of 'grid visualizer'.

Specifically my problem:
While trying to visualize a 2d np array (shape 80x75). I run into error
Could not parse evaluation result as JSON: Unexpected token ' in JSON,,,, ,,,,Used debug adapter: python.
Taking a hint from #82, if I try visualize(str(variable_name)) though, it outputs a string like the following

[[0.00093501 0.00093501 0.00093501 ... 0.00170146 0.00170146 0.00170146]
[0.00093501 0.00093501 0.00093501 ... 0.00170146 0.00170146 0.00170146]
[0.00093501 0.00093501 0.00093501 ... 0.00170146 0.00170146 0.00170146]
...
[0.00451131 0.00451131 0.00451131 ... 0.02732074 0.02732074 0.02732074]
[0.00451131 0.00451131 0.00451131 ... 0.02732074 0.02732074 0.02732074]
[0.00451131 0.00451131 0.00451131 ... 0.02732074 0.02732074 0.02732074]]

which is good (a little better, that at least there is no error), but it has a number of '...'., as you can see above.

Is it not possible to visualize the matrix directly using some kind of a colour map? Running visualize(variable_name[:10]) works (no error) but results in 10 line plots overlayed on top of one another, not a color map grid visualization. Kindly advise.

A related perhaps a separate issue, taking a hint from #82 I ran visualize(str(variable_name)) above, but I cannot run np.array(str(variable_name)) the errior I see in the visualizer is NameError: name 'np' is not defined, nor can I pass to visualize() import numpy as np; np.array(str(variable_name)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
Backlog
Not Planned In Near Future
Development

No branches or pull requests

5 participants