Closed masami87 closed 6 years ago
What version of ann-visualizer are you using?
And what example code are you trying to run?
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)
Upgrade to version 2.3 first. What python version are you using?
python 3.6
I upgraded to version 2.3 and the error is the same.
Can you try running the whole thing on python 3.5 ?
0248a8d1a1f4b965ebe6109e1bfec76114145865
Should have been fixed in Release v2.4
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'