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 attention map visualization func #475

Merged
merged 4 commits into from
Jul 25, 2024
Merged

Add attention map visualization func #475

merged 4 commits into from
Jul 25, 2024

Conversation

WenjieDu
Copy link
Owner

What does this PR do?

  1. fixing Visualize self-attention matrix #178;
  2. refactoring code;

Before submitting

  • Was this discussed/approved via a GitHub issue? Please add a link to it if that's the case.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have written necessary tests and already run them locally.

WenjieDu and others added 4 commits July 22, 2024 15:57
* Update visualizeAttention.py

Changed typos leading to errors in the function. Returns the figure object instead of axis object. Added a parameter for setting the font scale in the heatmap

* Update visualizeAttention.py

---------

Co-authored-by: Wenjie Du <wenjay.du@gmail.com>
@WenjieDu WenjieDu merged commit e0d4d4f into main Jul 25, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants