Source code for the paper Cognitive map formation under uncertainty via local prediction learning.
data_visualization.ipynb: used for figure generation in the paperdataset_generator.ipynb: used to create pickle files of the dataloadersdataloader.py: functions for dataset generation (synthetic environment)evaluation.py: evaluation functionsgcml-auto.ipynb: used for running POCML over different hyperparameters in wandbgcml.ipynb: used to run POCML on a specific set of hyperparameters, print accuracy, visualize learned representations, loss, etc.model.py: code for POCML model and LSTM/Transformer benchmarkstrain_benchmark_auto.ipynb: used for running benchmarks over different hyperparameters in wandbtrain_benchmark.ipynb: used for running benchmarks over different hyperparameters in wandbtrainer.py: code for training POCML and benchmarkstwo_tunnel.ipynb: code for generating visualizations for the two tunnel maze experimentutils.py: misc functionsvisualizer.py: PCA visualization codezero_shot.ipynb: code for zero shot generalization experiment