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

Neural Network Graph? #55

Open
nithchin opened this issue Jan 8, 2022 · 2 comments
Open

Neural Network Graph? #55

nithchin opened this issue Jan 8, 2022 · 2 comments

Comments

@nithchin
Copy link

nithchin commented Jan 8, 2022

How do I obtain the graph of the neural network connections?

@davidrmiller
Copy link
Owner

Hi @nithchin , sorry that it's not well documented.

The network diagrams are made with the program graph-nnet.py in the tools directory. It expects to find a text file named net.txt in the current directory that contains one neural net in mnemonic format. You can copy a net from the simulator's stdout stream and paste it into net.txt. It's the format that looks like this:

N0 MvW -24201
Osc MvW -2446
Blr MvY -21215
Bfd MvS 30249

The output will be a .svg file in the current directory. I believe (untested) you can change the output filename in graph-nnet.py to create .png, or .ps files if you prefer.

@nithchin
Copy link
Author

nithchin commented Jan 8, 2022

Thank you! It is working perfectly now!

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

No branches or pull requests

2 participants