Skip to content

Commit

Permalink
Add training maze database and tutorial (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
calderast authored Oct 22, 2024
1 parent 1f4c789 commit 324dad0
Show file tree
Hide file tree
Showing 10 changed files with 14,785 additions and 31 deletions.
11 changes: 8 additions & 3 deletions Maze_Databases/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
# This folder contains various databases of different mazes.

Currently, it only has one database of mazes good for probability change experiments!
These mazes are useful for training or probability change experiments.

-----


`probability_change_mazes` contains 38208 mazes that are currently not used in barrier sequences. These are good for probabilty change experiments.
- The column `probability_group` groups the mazes, such that all mazes in a group have at least 10 hexes different on optimal paths.
- There are 2077 groups with ~5-40 mazes in each group.
- See [`Generate_Probability_Change_Database.ipynb`](../Tutorials/Generate_Probability_Change_Database.ipynb) in the `Tutorials` folder for more info on how this database was generated.
- See [`Generate_Probability_Change_Database.ipynb`](../Tutorials/Generate_Probability_Change_Database.ipynb) in the `Tutorials` folder for more info on how this database was generated.

`training_maze_database` contains 11554 mazes used for early stages of training when the rats are getting used to the maze.
- All path lengths between reward ports are of equal length. There are 9288 mazes where all reward path lengths are 15 hexes, and 2266 mazes where all reward path lengths are 17 hexes.
- Mazes have either 5 or 6 barriers.
- There are no straight paths >8 hexes long
- See [`Generate_Training_Maze_Database.ipynb`](../Tutorials/Generate_Training_Maze_Database.ipynb) in the `Tutorials` folder for more info on how this database was generated.
11,555 changes: 11,555 additions & 0 deletions Maze_Databases/training_maze_database.csv

Large diffs are not rendered by default.

Binary file added Maze_Databases/training_maze_database.pkl
Binary file not shown.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@ Navigate to the `Tutorials/` folder and begin with the [`Getting_Started.ipynb`]
- [Searching the maze configuration database for the mazes you want](Tutorials/Maze_Configuration_Database_Search.ipynb)
- [Searching the barrier sequence database for the sequence you want](Tutorials/Barrier_Sequence_Database_Search.ipynb)
- [Demos of useful hex maze functions](Tutorials/Hex_Maze_Functions.ipynb)
- [Generating barrier sequences with custom criteria](Tutorials/Generate_Custom_Barrier_Sequence_Database.ipynb)

These 3 are also provided for reference:
- [How the hex maze database was generated](Tutorials/Generate_Hex_Maze_Database.ipynb)
- [How the probability change database was generated](Tutorials/Generate_Probability_Change_Database.ipynb)
- [Generating barrier sequences with custom criteria](Tutorials/Generate_Custom_Barrier_Sequence_Database.ipynb)
- [How the training maze database was generated](Tutorials/Generate_Training_Maze_Database.ipynb)

Note that some of these tutorials are currently in progress, LMK if you need one asap and I'll make it a priority!
Expand Down Expand Up @@ -74,10 +77,15 @@ The `Barrier_Sequence_Database_Search.ipynb` notebook in the `Tutorials/` folder
Custom databases can be generated using the `Generate_Custom_Barrier_Sequence_Database.ipynb` notebook available in the `Tutorials/` folder.
### Database of mazes for probability change experiments
The `Maze_Databases/` folder contains a database of mazes good for probability change experiments. These mazes are grouped such that all mazes in a group differ by at least 10 hexes on optimal paths.
`Maze_Databases/probability_change_mazes` contains a database of mazes good for probability change experiments. These mazes are grouped such that all mazes in a group differ by at least 10 hexes on optimal paths.
This database was generated using the `Generate_Probability_Change_Database.ipynb` notebook available in the `Tutorials/` folder.
### Database of mazes for early stages of training
`Maze_Databases/training_maze_database` contains a database of mazes good for training. There are 5-6 barriers and all paths are the same length (either 15 or 17 hexes).
This database was generated using the `Generate_Training_Maze_Database.ipynb` notebook available in the `Tutorials/` folder.
## Other info
### Hex maze functions
Expand Down
Loading

0 comments on commit 324dad0

Please sign in to comment.