Skip to content

Updated repo requirements and structure in README, cleaned src/analysis keeping only essential scripts#36

Merged
jgendra merged 6 commits into
mainfrom
jgendra
Jun 28, 2026
Merged

Updated repo requirements and structure in README, cleaned src/analysis keeping only essential scripts#36
jgendra merged 6 commits into
mainfrom
jgendra

Conversation

@jgendra

@jgendra jgendra commented Jun 28, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings June 28, 2026 12:10
@jgendra
jgendra merged commit 54c3aae into main Jun 28, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates repository documentation and folder layout, bumps a couple of Python dependencies, and cleans the src/analysis/ area by removing several older sinusoid/ElmanRNN example scripts while adding a new gaussianity-check script.

Changes:

  • Added src/analysis/test_gaussianity.py for normality testing/visualization of hidden activations.
  • Removed legacy sinusoid example scripts (src/analysis/RNN.py, src/analysis/main.py, src/analysis/compute_pid_sinusoid.py) as part of the src/analysis cleanup.
  • Updated README structure + added placeholder directories via .gitkeep, and bumped numpy/matplotlib versions in requirements.txt.

Reviewed changes

Copilot reviewed 6 out of 23 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/analysis/test_gaussianity.py New gaussianity testing script (currently references removed modules/old results paths).
src/analysis/RNN.py Removed ElmanRNN definition (impacts scripts still importing RNN).
src/analysis/PID_figures.py Commented out PID bar saving and appended gaussianity plotting code (currently depends on removed/relocated artifacts).
src/analysis/main.py Removed training + artifact generation script for the sinusoid example.
src/analysis/compute_pid_sinusoid.py Removed sinusoid PID computation driver script.
requirements.txt Updated pinned versions for numpy and matplotlib.
README.md Updated repo structure documentation to reflect current layout and results/figures subfolders.
results/stimulus_coherences/perceptual/.gitkeep Ensures results subfolder exists in repo.
results/stimulus_coherences/context/.gitkeep Ensures results subfolder exists in repo.
figures/pid/.gitkeep Ensures figures subfolder exists in repo.
figures/learning_curves/.gitkeep Ensures figures subfolder exists in repo.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +37 to +45
import torch
import numpy as np
import matplotlib.pyplot as plt
from scipy import stats
from RNN import ElmanRNN

# Define directories
dir = "src/analysis/results/"

Comment on lines +210 to +212
end_time = time.time()
print(f"\nTotal run time: {end_time - start_time:.2f} seconds")
print(f"Figures saved to {dir}")
Comment on lines +47 to +52
# Measure Gaussianity of hidden unit activations across all timesteps, for each unit.
import torch
from scipy import stats

h = torch.load(f'{dir}hidden_Sinusoid.pt', weights_only=True).numpy() # (300, 10)
n_units = h.shape[1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants