Skip to content

Commit

Permalink
Merge pull request #547 from wchapman/master
Browse files Browse the repository at this point in the history
net.run fix for unconnected layers
  • Loading branch information
Hananel-Hazan committed Apr 22, 2022
2 parents 0726d4c + e1d13d3 commit 7a9dd2c
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 301 deletions.
18 changes: 2 additions & 16 deletions bindsnet/environment/dot_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,10 @@

# Mappings for changing direction if reflected.
# Cannot cross a row boundary moving right or left.
ROW_CROSSING = {
1: 2,
3: -2,
5: 1,
6: -1,
7: 1,
8: -1,
}
ROW_CROSSING = {1: 2, 3: -2, 5: 1, 6: -1, 7: 1, 8: -1}

# Cannot cross a column boundary moving up or down.
COL_CROSSING = {
2: 2,
4: -2,
5: 3,
6: 1,
7: -1,
8: -3,
}
COL_CROSSING = {2: 2, 4: -2, 5: 3, 6: 1, 7: -1, 8: -3}


class Dot:
Expand Down

0 comments on commit 7a9dd2c

Please sign in to comment.