-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to add node_labels to graph (#250)
# Labelled graphs ## Description Allows node labels to be passed (as csv file) to be plotting script, example: ``` python plot_lm_graph.py /mnt/ssd-apollo/stefan/modular_arithmetic_interaction_graph.pt --nodes_per_layer 10 --labels_file test.csv --out_file test.png ``` Also added other parameters as command line arguments. ## Motivation We can now generate labels (interp repo) with ``` python generate_labels_mod_add.py /mnt/ssd-apollo/stefan/modular_arithmetic_interaction_graph.pt --out_file=test.csv ``` and want to add them to our graphs. Labels currently only available for mod add, but this setup works for any model. ## Tested Made labelled and unlabelled plots. ## Breaking changes No
- Loading branch information
1 parent
5779b6a
commit 7ac5fec
Showing
2 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters