RedaOps / ann-visualizer

A python library for visualizing Artificial Neural Networks (ANN)
MIT License
1.24k stars 216 forks source link

running example Error #8

Closed masami87 closed 6 years ago

masami87 commented 6 years ago

Traceback (most recent call last): File "anntest.py", line 21, in ann_viz(network) File "/home/masami/anaconda3/lib/python3.6/site-packages/ann_visualizer/visualize.py", line 88, in ann_viz g.attr(splines="false", nodesep='1', ranksep='2'); TypeError: attr() missing 1 required positional argument: 'kw'

RedaOps commented 6 years ago

What version of ann-visualizer are you using?

And what example code are you trying to run?

masami87 commented 6 years ago

version 2.2 and my code: import keras from keras.models import Sequential from keras.layers import Dense

network = Sequential() network.add(Dense(units=6, activation='relu', kernel_initializer='uniform', input_dim=11))

network.add(Dense(units=6, activation='relu', kernel_initializer='uniform'))

network.add(Dense(units=1, activation='sigmoid', kernel_initializer='uniform'))

from ann_visualizer.visualize import ann_viz

ann_viz(network)

RedaOps commented 6 years ago

Upgrade to version 2.3 first. What python version are you using?

masami87 commented 6 years ago

python 3.6

masami87 commented 6 years ago

I upgraded to version 2.3 and the error is the same.

RedaOps commented 6 years ago

Can you try running the whole thing on python 3.5 ?

RedaOps commented 6 years ago

0248a8d1a1f4b965ebe6109e1bfec76114145865

Should have been fixed in Release v2.4