Take the 2-minute tour ×
Cognitive Sciences Stack Exchange is a question and answer site for practitioners, researchers, and students in cognitive science, psychology, neuroscience, and psychiatry. It's 100% free, no registration required.

I am using Octave to generate a Neural Network with a single hidden layer, and saving it as two CSV files.

Is there a utility or software that will load the files and create an image, PDF or HTML page that displays the weights over edges connecting neurons?

share|improve this question

migrated from stats.stackexchange.com Aug 16 '12 at 11:14

This question came from our site for people interested in statistics, machine learning, data analysis, data mining, and data visualization.

    
I don't think this a good fit for us. –  Chuck Sherrington Aug 16 '12 at 11:30
2  
@ChuckSherrington I was the one that flagged this for migration. This sort of visualization of the network as a series of edges with weights over them (this is what OP desires, see comment on answer) is a practical concern for CogSci modelers that use neural nets. This is not purely a stats question because unlike modelers, statisticians don't care that much about drawing the connections. –  Artem Kaznatcheev Aug 16 '12 at 13:08
    
@ArtemKaznatcheev Never mind, we'll talk later... –  Chuck Sherrington Aug 16 '12 at 15:57

2 Answers 2

For what it's worth, I did a lot of research and did not find a solution.

So I created my own using HTML, jQuery and a canvas. It's not pretty, but it does not require a lot of work because the functionality is simple: When you click on a node, display its edges and the associated weights.

share|improve this answer

If you have CSV files a quick way to generate images would be to open it in Excel (or a similar spreadsheet software) and use some sort of colour scale conditional formatting (under home>styles in Microsoft Excel) - set the width and heights of the cells to small in order to view all the data at once.

You could also use a surface chart in order to visualise the data in Excel.

Otherwise if you are familiar with a tool like Matlab or R, you might wish to use some sort of graphic tool to represent it, e.g. meshgrid in Matlab might work.

Matlab and/or R can be programmed to load several CSV files and create graphics from them. The first two techniques I mentioned (although accessible to a more novice computer user) have to be carried out manually.

share|improve this answer
    
I don't think Excel will do it because the CSV files hold the weights. So it needs to process each cell and display the weight over the arrow. A Matlab tool might work if it is available for Octave...meshgrid seems to be used for drawing 3D charts. –  B Seven Apr 20 '12 at 22:20
    
Usually weights are visualised as a grid of colours, with each square in the grid representing a separate weight. I am currently unaware of tools that display weights over the lines connecting the neurons. Meshgrid can also be used to display 2D charts if I'm not mistaken. You could alternatively rotate the view in order to display the mesh from top-down. HTH –  Andrew Apr 21 '12 at 18:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.