-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2578 from PrincetonUniversity/devel
Devel
- Loading branch information
Showing
145 changed files
with
6,353 additions
and
3,261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -196,4 +196,5 @@ tests/*.pdf | |
# mypy cache | ||
.mypy_cache | ||
|
||
/tests/json/*.json | ||
/tests/mdf/*.json | ||
/tests/mdf/*.yml |
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
Scripts/Models (Under Development)/Nback/SphericalDrift Tests.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import numpy as np | ||
from psyneulink import * | ||
|
||
NUM_TRIALS = 48 | ||
|
||
stims = np.array([x[0] for x in em.memory]) | ||
contexts = np.array([x[1] for x in em.memory]) | ||
cos = Distance(metric=COSINE) | ||
dist = Distance(metric=EUCLIDEAN) | ||
diffs = [np.sum([contexts[i+1] - contexts[1]]) for i in range(NUM_TRIALS)] | ||
diffs_1 = [np.sum([contexts[i+1] - contexts[i]]) for i in range(NUM_TRIALS)] | ||
diffs_2 = [np.sum([contexts[i+2] - contexts[i]]) for i in range(NUM_TRIALS-1)] | ||
dots = [[contexts[i+1] @ contexts[1]] for i in range(NUM_TRIALS)] | ||
dot_diffs_1 = [[contexts[i+1] @ contexts[i]] for i in range(NUM_TRIALS)] | ||
dot_diffs_2 = [[contexts[i+2] @ contexts[i]] for i in range(NUM_TRIALS-1)] | ||
angle = [cos([contexts[i+1], contexts[1]]) for i in range(NUM_TRIALS)] | ||
angle_1 = [cos([contexts[i+1], contexts[i]]) for i in range(NUM_TRIALS)] | ||
angle_2 = [cos([contexts[i+2], contexts[i]]) for i in range(NUM_TRIALS-1)] | ||
euclidean = [dist([contexts[i+1], contexts[1]]) for i in range(NUM_TRIALS)] | ||
euclidean_1 = [dist([contexts[i+1], contexts[i]]) for i in range(NUM_TRIALS)] | ||
euclidean_2 = [dist([contexts[i+2], contexts[i]]) for i in range(NUM_TRIALS-1)] | ||
print("STIMS:", stims, "\n") | ||
print("DIFFS:", diffs, "\n") | ||
print("DIFFS 1:", diffs_1, "\n") | ||
print("DIFFS 2:", diffs_2, "\n") | ||
print("DOT PRODUCTS:", dots, "\n") | ||
print("DOT DIFFS 1:", dot_diffs_1, "\n") | ||
print("DOT DIFFS 2:", dot_diffs_2, "\n") | ||
print("ANGLE: ", angle, "\n") | ||
print("ANGLE_1: ", angle_1, "\n") | ||
print("ANGLE_2: ", angle_2, "\n") | ||
print("EUCILDEAN: ", euclidean, "\n") | ||
print("EUCILDEAN 1: ", euclidean_1, "\n") | ||
print("EUCILDEAN 2: ", euclidean_2, "\n") |
Empty file.
Oops, something went wrong.