kdqemre commited on
Commit
b71ff4d
·
verified ·
1 Parent(s): c7c7c28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -26,15 +26,15 @@ def update_graph(input_size, hidden_size, output_size, input_color, hidden_color
26
 
27
  # Input layer neurons
28
  for i in range(input_size):
29
- G.add_node(f'I{i}', layer='input')
30
 
31
  # Hidden layer neurons
32
  for i in range(hidden_size):
33
- G.add_node(f'H{i}', layer='hidden')
34
 
35
  # Output layer neurons
36
  for i in range(output_size):
37
- G.add_node(f'O{i}', layer='output')
38
 
39
  # Connections from input layer to hidden layer
40
  for i in range(input_size):
 
26
 
27
  # Input layer neurons
28
  for i in range(input_size):
29
+ G.add_node(f'I{i+1}', layer='input')
30
 
31
  # Hidden layer neurons
32
  for i in range(hidden_size):
33
+ G.add_node(f'H{i+1}', layer='hidden')
34
 
35
  # Output layer neurons
36
  for i in range(output_size):
37
+ G.add_node(f'O{i+1}', layer='output')
38
 
39
  # Connections from input layer to hidden layer
40
  for i in range(input_size):