OSCR

Hierarchical learning creates invariant schema within plastic neural networks.

Code ↔ Paper

6 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 6 matches
  1. [1] § Methods › Trial firing ↔ scripts/PlotMaker.py, lines 231–303 · score 0.69 · background firing, peak firing, activated firings, steepness, boundary, neurons
  2. [2] § Methods › Top models › Backpropagation networks ↔ scripts/PlotMaker.py, lines 545–608 · score 0.65 · MLPClassifier, max_iter, tanh activation, hidden layers, model, neuron
  3. [3] § Results › Distinct populations of hidden neurons segregate into sequential layers in hierarchical models ↔ scripts/PlotMaker.py, lines 545–608 · score 0.60 · peak firing, activated firing, event cells, hidden layer, NB, HB
  4. [4] § Results › Hierarchical networks converge to a stable schema robust to further training ↔ scripts/PlotMaker.py, lines 1–34 · score 0.60 · Concept space, Network robustness, event cell, Boundary cell, firing, ENN
  5. [5] § Results › Hierarchical schema is distillable into a concise interpretable circuit ↔ scripts/PlotMaker.py, lines 231–303 · score 0.56 · background firing, peak firing, Boundary cell, steepness, Event, activated
  6. [6] § Methods › Top models › Essence neural networks ↔ enn/network.py, lines 32–152 · score 0.55 · subconcept neurons, activation function, artificial, biases, tanh, class

Paper

Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

Python · 723 lines · 26 KB · no license · 5 matches

  1. '''
  2. Path: bdENS/repo/scripts/PlotMaker.py
  3. Boundary-Detecting ENN Project
  4. Results Plots
  5. - Figure 2a: Boundary Cell Firing
  6. - Figure 2b: Event Cell Firing
  7. - Figure 2c: Average Firing Rates
  8. - Figure 2d: Trial Firings
  9. - Figure 2e: Neuron Average Firing
  10. - Figure 3b: MLP Plots
  11. - Figure 3c: ENN Plots
  12. - Figure 3e: Network Robustness Plots
  13. - Figure 3f: Concept Space Plots
  14. Author: James R. Elder
  15. Institution: UTSW
  16. DOO: 11-25-2024
  17. LU: 11-25-2024
  18. Reference(s):
  19. - bdENS/release/FigureScripts/Fig2abc.py
  20. - bdENS/release/FigureScripts/Fig2d.py
  21. - bdENS/release/FigureScripts/Fig2e.py
  22. - bdENS/release/FigureScripts/Fig3b.py
  23. - bdENS/release/FigureScripts/Fig3c.py
  24. - bdENS/release/FigureScripts/Fig3e.py
  25. - bdENS/release/FigureScripts/Fig3f.py
  26. - Python 3.12.2
  27. - bdENSenv
  28. - 3.12.x-anaconda
  29. - linux-gnu (BioHPC)
  30. '''
  31. # Project variables
  32. user = "s181641"
  33. projID = "bdENS"
  34. labID = "Lin_lab"
  35. labAffiliation = "greencenter"
  36. projDir = "/work/{}/{}/{}/".format(labAffiliation, user, projID)
  37. # Subproject variables
  38. subprojID = "NetworkVisualization"
  39. branch = "repo"
  40. # System imports
  41. import time
  42. today = time.strftime("%m-%d-%Y")
  43. import os
  44. if os.getcwd() != projDir + branch:
  45. print("Changing to project directory")
  46. os.chdir(projDir + branch) # Change to the project directory
  47. import sys
  48. sys.path.append(projDir + branch) # Add the project directory to the system path
  49. # 3rd party imports
  50. import numpy as np
  51. import matplotlib.pyplot as plt
  52. # ENN imports
  53. # Local imports
  54. from utils import LumberJack as LJ
  55. from utils import NetworkVisualizer as NV
  56. from utils import commonFunctions as cF
  57. from utils import commonClasses as cC
  58. # Logging
  59. logMan = LJ.LoggingManager(subprojID)
  60. cF.updatePlotrcs(font="serif")
  61. # Variables
  62. globers = {
  63. "randomSeed": 42,
  64. "nTrials": 135,
  65. "nBins": 150,
  66. "msPerBin": 10,
  67. "boundaryBin": 50,
  68. }
  69. eventers = {
  70. "nNeurons": 36,
  71. "cellType": "HB",
  72. "peakFiring": 30.1,
  73. "peakStd": 5.5,
  74. }
  75. trialers = {
  76. "nNBTrials": 30,
  77. "nSBTrials": 75,
  78. "nHBTrials": 30
  79. }
  80. boundaryers = {
  81. "nNeurons": 42,
  82. "cellType": "B",
  83. "peakFiring": 19.7,
  84. "peakStd": 4.9
  85. }
  86. boundaryRecording = cF.loadNeuron(7, boundaryers["cellType"])
  87. eventRecording = cF.loadNeuron(2, eventers["cellType"])
  88. eventCellMeanRecordings = np.zeros((eventers["nNeurons"], globers["nBins"]))
  89. boundaryCellMeanRecordings = np.zeros((boundaryers["nNeurons"], globers["nBins"]))
  90. for i in range(1, eventers["nNeurons"]+1):
  91. neuronRecording = cF.loadNeuron(i, 'HB')
  92. neuronRecording = np.mean(neuronRecording[105:], axis=0)
  93. eventCellMeanRecordings[i-1] = neuronRecording
  94. eventCellsMeanRecordings = np.mean(eventCellMeanRecordings, axis=0)
  95. for i in range(1, boundaryers["nNeurons"]+1):
  96. neuronRecording = cF.loadNeuron(i, 'B')
  97. neuronRecording = np.mean(neuronRecording[30:], axis=0)
  98. boundaryCellMeanRecordings[i-1] = neuronRecording
  99. boundaryCellsMeanRecordings = np.mean(boundaryCellMeanRecordings, axis=0)
  100. figWidth = 8
  101. figHeight = 2.5
  102. fig, ax = plt.subplots(1,3, figsize=(figWidth, figHeight))
  103. randomSBTrials = np.random.choice(np.arange(trialers["nNBTrials"], trialers["nNBTrials"] + trialers["nSBTrials"]), 30, replace=False)
  104. boundaryRecordingSubSample = np.append(boundaryRecording[:30], boundaryRecording[randomSBTrials])
  105. boundaryRecordingSubSample = np.append(boundaryRecordingSubSample, boundaryRecording[105:])
  106. boundaryRecordingSubSample = np.reshape(boundaryRecordingSubSample, (-1, 150))
  107. ax[0].imshow(boundaryRecordingSubSample, aspect='auto', cmap="gray_r")
  108. ax[0].set_title("Boundary Cell (B)")
  109. randomSBTrials = np.random.choice(np.arange(trialers["nNBTrials"], trialers["nNBTrials"] + trialers["nSBTrials"]), 30, replace=False)
  110. eventRecordingSubSample = np.append(eventRecording[:30], eventRecording[randomSBTrials])
  111. eventRecordingSubSample = np.append(eventRecordingSubSample, eventRecording[105:])
  112. eventRecordingSubSample = np.reshape(eventRecordingSubSample, (-1, 150))
  113. ax[1].imshow(eventRecordingSubSample, aspect='auto', cmap="gray_r")
  114. ax[1].set_title("Event Cell (E)")
  115. ax[2].plot(boundaryCellsMeanRecordings, color=cC.cellColors["Boundary"], label="B", linestyle="-", linewidth=2.5)
  116. ax[2].plot(eventCellsMeanRecordings, color=cC.cellColors["Event"], label="E", linestyle="-", linewidth=2.5)
  117. ax[2].legend(loc="upper right", ncol=1, bbox_to_anchor=(1.1, 1.05))
  118. # Add early at the top of the plot on the left, and late at the top of the plot on the right
  119. ax[2].annotate("Early", xy=(globers["boundaryBin"], 0.27), xytext=(globers["boundaryBin"]+10, 0.27), textcoords="data", ha="center", va="center", fontsize=8, rotation=90)
  120. ax[2].annotate("Late", xy=(globers["boundaryBin"]+22, 0.275), xytext=(globers["boundaryBin"]+32, 0.275), textcoords="data", ha="center", va="center", fontsize=8, rotation=90)
  121. ax[2].set_title("Mean Firing Rate")
  122. for i in range(3):
  123. ax[i].spines['top'].set_visible(False)
  124. ax[i].spines['right'].set_visible(False)
  125. ax[i].set_xticks([0, 50, 100, 150], ["-0.5", "0.0", "0.5", "1.0"])
  126. ax[i].set_xlim(0, globers["nBins"])
  127. ax[i].set_xlabel("Time, relative to\nboundary (s)")
  128. ax[i].axvline(globers["boundaryBin"], color="black", linestyle="-")
  129. if i != 2:
  130. ax[i].set_ylabel("Trial")
  131. ax[i].set_ylim(90, 0)
  132. ax[i].set_yticks([0, 30, 60, 90], [])
  133. ax[i].axhspan(0, trialers["nNBTrials"], color=cC.conceptColors[0], alpha=0.1)
  134. ax[i].axhspan(trialers["nNBTrials"], trialers["nNBTrials"] + 30, color=cC.conceptColors[1], alpha=0.1)
  135. ax[i].axhspan(60, 90, color=cC.conceptColors[2], alpha=0.1)
  136. else:
  137. ax[i].set_yticks([0, 0.1, 0.2, 0.3], ["0", "1", "2", "3"])
  138. ax[i].set_ylabel("Firing Rate (Hz)")
  139. ax[i].axvline(globers["boundaryBin"]+22, color="black", linestyle="--")
  140. fig.tight_layout()
  141. fig.savefig(logMan.mediaDir + "/Fig2abc.png",
  142. transparent=True,
  143. dpi=300)
  144. plt.close(fig)
  145. # Figure 2d: Trial Firings
  146. # ENN imports
  147. from enn.network import Network
  148. import enn.learnBoundaries as lB
  149. # 3rd party imports
  150. from sklearn.neural_network import MLPClassifier
  151. from sklearn.model_selection import train_test_split
  152. """
  153. # Variables
  154. globers = {
  155. "randomSeed": 42,
  156. "nTrials": 135,
  157. "nBins": 150,
  158. "msPerBin": 10,
  159. "boundaryBin": 50,
  160. "trainTestSplit": 0.5,
  161. "nHiddenNeurons": 3,
  162. "nHiddenLayers": 2
  163. }
  164. mlpers = {
  165. "maxIter": 10000,
  166. "activation": "tanh",
  167. }
  168. eventers = {
  169. "nNeurons": 36,
  170. "cellType": "HB",
  171. "peakFiring": 30.1,
  172. "peakStd": 5.5,
  173. }
  174. trialers = {
  175. "nNBTrials": 30,
  176. "nSBTrials": 75,
  177. "nHBTrials": 30
  178. }
  179. enners = {
  180. "subconceptSelector": 0,
  181. }
  182. boundaryers = {
  183. "nNeurons": 42,
  184. "cellType": "B",
  185. "peakFiring": 19.7,
  186. "peakStd": 4.9
  187. }
  188. plotters = {
  189. "aTrial": 0.1,
  190. "cBoundary": "#E8BDCB",
  191. "cEvent": "#E5C8EE"
  192. }
  193. # Functions
  194. def activateFiring(_avgPeakFiring, _backgroundFiring):
  195. _scaleFactor = 0.5
  196. _xOffset = 1.5
  197. _steepness = 0.1 / np.std(np.mean(_backgroundFiring, axis=1))
  198. _yOffset = 0.5
  199. _normalizedFiring = _avgPeakFiring / np.mean(_backgroundFiring)
  200. return _scaleFactor * np.tanh(_steepness * (_normalizedFiring - _xOffset)) + _yOffset
  201. eventCellActivatedFirings = np.zeros((globers["nTrials"], eventers["nNeurons"]))
  202. lateBoundaryInds = []
  203. earlyEventInds = []
  204. cutoff = 22
  205. for i in range(eventers["nNeurons"]):
  206. recording = cF.loadNeuron(i+1, eventers["cellType"])
  207. preBoundaryFiring = recording[:,:globers["boundaryBin"]]
  208. peakFiring = recording[:,int(globers["boundaryBin"]+eventers["peakFiring"]-2*eventers["peakStd"]):int(globers["boundaryBin"] + eventers["peakFiring"]+2*eventers["peakStd"])]
  209. avgPeakFiring = np.mean(peakFiring, axis=1)
  210. if np.argmax(np.mean(recording[105:], axis=0)) <= globers["boundaryBin"] + cutoff:
  211. earlyEventInds.append(i)
  212. eventCellActivatedFirings[:,i] = activateFiring(avgPeakFiring, preBoundaryFiring)
  213. eventScorer = [-1, -1, 1]
  214. eventAvgClassFiring = [np.mean(eventCellActivatedFirings[:30], axis=0),
  215. np.mean(eventCellActivatedFirings[30:105], axis=0),
  216. np.mean(eventCellActivatedFirings[105:], axis=0)]
  217. eventCellEventness = np.dot(eventScorer, eventAvgClassFiring)
  218. eventnessInds = np.argsort(-eventCellEventness)
  219. eventCellActivatedFirings = eventCellActivatedFirings[:,eventnessInds]
  220. boundaryCellActivatedFirings = np.zeros((globers["nTrials"], boundaryers["nNeurons"]))
  221. for i in range(boundaryers["nNeurons"]):
  222. recording = cF.loadNeuron(i+1, boundaryers["cellType"])
  223. preBoundaryFiring = recording[:,:globers["boundaryBin"]]
  224. peakFiring = recording[:,int(globers["boundaryBin"]+boundaryers["peakFiring"]-2*boundaryers["peakStd"]):int(globers["boundaryBin"] + boundaryers["peakFiring"]+2*boundaryers["peakStd"])]
  225. avgPeakFiring = np.mean(peakFiring, axis=1)
  226. if np.argmax(np.mean(recording[30:], axis=0)) > globers["boundaryBin"] + cutoff:
  227. lateBoundaryInds.append(i)
  228. boundaryCellActivatedFirings[:,i] = activateFiring(avgPeakFiring, preBoundaryFiring)
  229. boundaryScorer = [-1, 1, 1]
  230. boundaryAvgClassFiring = [np.mean(boundaryCellActivatedFirings[:30], axis=0),
  231. np.mean(boundaryCellActivatedFirings[30:105], axis=0),
  232. np.mean( boundaryCellActivatedFirings[105:], axis=0)]
  233. boundaryCellBoundariness = np.dot(boundaryScorer, boundaryAvgClassFiring)
  234. boundaryInds = np.argsort(-boundaryCellBoundariness)
  235. boundaryCellActivatedFirings = boundaryCellActivatedFirings[:,boundaryInds]
  236. earlyCellFirings = []
  237. lateCellFirings = []
  238. for i in range(boundaryCellActivatedFirings.shape[1]):
  239. if i in lateBoundaryInds:
  240. lateCellFirings.append(boundaryCellActivatedFirings[:,i])
  241. else:
  242. earlyCellFirings.append(boundaryCellActivatedFirings[:,i])
  243. for i in range(eventCellActivatedFirings.shape[1]):
  244. if i in earlyEventInds:
  245. earlyCellFirings.append(eventCellActivatedFirings[:,i])
  246. else:
  247. lateCellFirings.append(eventCellActivatedFirings[:,i])
  248. earlyCellFirings = np.array(earlyCellFirings).T
  249. lateCellFirings = np.array(lateCellFirings).T
  250. earlyCellSubFirings = []
  251. lateCellSubFirings = []
  252. # Randomly sample 30 of the SB trials
  253. for i in range(earlyCellFirings.shape[1]):
  254. sbTrials = np.random.choice(range(30, 105), 30, replace=False)
  255. earlyCellSubFirings.append(np.append(earlyCellFirings[:30,i], earlyCellFirings[sbTrials,i]))
  256. earlyCellSubFirings[i] = np.append(earlyCellSubFirings[i], earlyCellFirings[105:,i])
  257. for i in range(lateCellFirings.shape[1]):
  258. sbTrials = np.random.choice(range(30, 105), 30, replace=False)
  259. lateCellSubFirings.append(np.append(lateCellFirings[:30,i], lateCellFirings[sbTrials,i]))
  260. lateCellSubFirings[i] = np.append(lateCellSubFirings[i], lateCellFirings[105:,i])
  261. earlyCellSubFirings = np.array(earlyCellSubFirings).T
  262. lateCellSubFirings = np.array(lateCellSubFirings).T
  263. xAll, yAll = cF.loadEmbeddings()
  264. xAll_NB = xAll[yAll == 0]
  265. xAll_SB = xAll[yAll == 1]
  266. xAll_HB = xAll[yAll == 2]
  267. nTrials = 20
  268. enn_l1Outputs = np.zeros((nTrials, 90, 3))
  269. enn_l2Outputs = np.zeros((nTrials, 90, 3))
  270. mlp_l1Outputs = np.zeros((nTrials, 90, 3))
  271. mlp_l2Outputs = np.zeros((nTrials, 90, 3))
  272. mlpAccs = np.zeros(nTrials)
  273. convThresh = 0.5
  274. for i in range(nTrials):
  275. xTrain, xTest, yTrain, yTest = train_test_split(xAll, yAll,
  276. train_size=globers["trainTestSplit"],
  277. random_state=globers["randomSeed"]+i)
  278. xAll_NB_TrialsInds = np.random.choice(range(len(xAll_NB)), 30, replace=False)
  279. xAll_SB_TrialsInds = np.random.choice(range(len(xAll_SB)), 30, replace=False)
  280. xAll_HB_TrialsInds = np.random.choice(range(len(xAll_HB)), 30, replace=False)
  281. xAll_Trials = np.concatenate((xAll_NB[xAll_NB_TrialsInds],
  282. xAll_SB[xAll_SB_TrialsInds],
  283. xAll_HB[xAll_HB_TrialsInds]), axis=0)
  284. mdlENN = lB.main_0(xTrain, yTrain, enners["subconceptSelector"], globers["nHiddenNeurons"])
  285. mdlMLP = MLPClassifier(hidden_layer_sizes=(globers["nHiddenNeurons"],globers["nHiddenNeurons"]), max_iter=mlpers["maxIter"],
  286. random_state=globers["randomSeed"]+i, activation=mlpers["activation"])
  287. mdlMLP.fit(xTrain, yTrain)
  288. mlpAccs[i] = mdlMLP.score(xTest, yTest)
  289. enn_l1Output = mdlENN.layers[0].compute_output(xAll_Trials, activate=True) # Tanh activation
  290. enn_l2Output = mdlENN.layers[1].compute_output(enn_l1Output, activate=True) # Tanh activation
  291. # Flip the sign of the firings rates if the average firing rate on NB is positive
  292. for i2 in range(3):
  293. if np.mean(enn_l1Output[:30, i2]) > 0:
  294. enn_l1Output[:, i2] = -enn_l1Output[:, i2]
  295. if np.mean(enn_l2Output[:30, i2]) > 0:
  296. enn_l2Output[:, i2] = -enn_l2Output[:, i2]
  297. enn_l1Outputs[i] = enn_l1Output
  298. enn_l2Outputs[i] = enn_l2Output
  299. if mlpAccs[i] > convThresh:
  300. mlp_l1Output_unAct = mdlMLP.coefs_[0].T @ xAll_Trials.T + mdlMLP.intercepts_[0].reshape(-1, 1)
  301. mlp_l1Output = np.tanh(mlp_l1Output_unAct) # Tanh activation
  302. mlp_l2Output_unAct = mdlMLP.coefs_[1].T @ mlp_l1Output + mdlMLP.intercepts_[1].reshape(-1, 1)
  303. mlp_l2Output = np.tanh(mlp_l2Output_unAct) # Tanh activation
  304. mlp_l1Output = mlp_l1Output.T
  305. mlp_l2Output = mlp_l2Output.T
  306. for i2 in range(3):
  307. if np.mean(mlp_l1Output[:30, i2]) > 0:
  308. mlp_l1Output[:, i2] = -mlp_l1Output[:, i2]
  309. if np.mean(mlp_l2Output[:30, i2]) > 0:
  310. mlp_l2Output[:, i2] = -mlp_l2Output[:, i2]
  311. mlp_l1Outputs[i] = mlp_l1Output
  312. mlp_l2Outputs[i] = mlp_l2Output
  313. # Remove unconverged networks
  314. mlp_l1Outputs = mlp_l1Outputs[mlpAccs > convThresh]
  315. mlp_l2Outputs = mlp_l2Outputs[mlpAccs > convThresh]
  316. enn_l1Outputs = enn_l1Outputs[mlpAccs > convThresh]
  317. enn_l2Outputs = enn_l2Outputs[mlpAccs > convThresh]
  318. mlpL1Firings = mlp_l1Outputs.reshape(-1, 90, 3)
  319. mlpL2Firings = mlp_l2Outputs.reshape(-1, 90, 3)
  320. ennL1Firings = enn_l1Outputs.reshape(-1, 90, 3)
  321. ennL2Firings = enn_l2Outputs.reshape(-1, 90, 3)
  322. mlpL1Cells = []
  323. mlpL2Cells = []
  324. ennL1Cells = []
  325. ennL2Cells = []
  326. for i in range(ennL1Firings.shape[0]):
  327. for i2 in range(3):
  328. mlpL1Cells.append(mlpL1Firings[i,:,i2])
  329. mlpL2Cells.append(mlpL2Firings[i,:,i2])
  330. ennL1Cells.append(ennL1Firings[i,:,i2])
  331. ennL2Cells.append(ennL2Firings[i,:,i2])
  332. mlpL1Cells = np.array(mlpL1Cells)
  333. mlpL2Cells = np.array(mlpL2Cells)
  334. ennL1Cells = np.array(ennL1Cells)
  335. ennL2Cells = np.array(ennL2Cells)
  336. mlpL1Cells = np.reshape(mlpL1Cells, (-1, 90))
  337. mlpL2Cells = np.reshape(mlpL2Cells, (-1, 90))
  338. ennL1Cells = np.reshape(ennL1Cells, (-1, 90))
  339. ennL2Cells = np.reshape(ennL2Cells, (-1, 90))
  340. # Sort the cells by average firing rate [Update this for Milo]
  341. # Need to put Boundary like cells first, then Event like cells, then the rest
  342. def sortCells(_cells):
  343. _threshold = 1.5
  344. _boundaryScorer = [-1, 1, 1]
  345. _eventScorer = [-1, -1, 1]
  346. _boundaryCells = []
  347. _eventCells = []
  348. _otherCells = []
  349. for i in range(_cells.shape[0]):
  350. boundaryScore = np.dot(_boundaryScorer, [np.mean(_cells[i,:30]), np.mean(_cells[i,30:60]), np.mean(_cells[i,60:])])
  351. eventScore = np.dot(_eventScorer, [np.mean(_cells[i,:30]), np.mean(_cells[i,30:60]), np.mean(_cells[i,60:])])
  352. if boundaryScore > eventScore and boundaryScore > _threshold:
  353. _boundaryCells.append(_cells[i])
  354. elif eventScore > boundaryScore and eventScore > _threshold:
  355. _eventCells.append(_cells[i])
  356. else:
  357. _otherCells.append(_cells[i])
  358. _boundaryCells = np.array(_boundaryCells)
  359. _boundaryCells = np.reshape(_boundaryCells, (-1, 90))
  360. _eventCells = np.array(_eventCells)
  361. _eventCells = np.reshape(_eventCells, (-1, 90))
  362. _otherCells = np.array(_otherCells)
  363. _otherCells = np.reshape(_otherCells, (-1, 90))
  364. # Sort within the boundary and event cells
  365. _boundaryCells = _boundaryCells[np.argsort(-np.mean(_boundaryCells[:,30:], axis=1))]
  366. _eventCells = _eventCells[np.argsort(-np.mean(_eventCells[:,60:], axis=1))]
  367. _otherCells = _otherCells[np.argsort(-np.mean(_otherCells, axis=1))]
  368. print("Boundary Cells: {}".format(_boundaryCells.shape))
  369. print("Event Cells: {}".format(_eventCells.shape))
  370. print("Other Cells: {}".format(_otherCells.shape))
  371. # Append all cells
  372. _allCells = np.concatenate((_boundaryCells, _eventCells, _otherCells), axis=0)
  373. print("All Cells: {}".format(_allCells.shape))
  374. return _allCells
  375. ennL1Cells = sortCells(ennL1Cells)
  376. ennL2Cells = sortCells(ennL2Cells)
  377. mlpL1Cells = sortCells(mlpL1Cells)
  378. mlpL2Cells = sortCells(mlpL2Cells)
  379. figWidth = 7
  380. figHeight = 2.5
  381. fig, ax = plt.subplots(1, 6, figsize=(figWidth, figHeight), tight_layout=True, sharey=True)
  382. _aspect=1
  383. ax[0].imshow(earlyCellSubFirings, cmap="gray_r",
  384. aspect=_aspect,
  385. vmin=0, vmax=1, interpolation="none")
  386. ax[1].imshow(ennL1Cells.T, cmap="gray_r",
  387. aspect=_aspect,
  388. vmin=-1, vmax=1, interpolation="none")
  389. ax[2].imshow(mlpL1Cells.T, cmap="gray_r",
  390. aspect=_aspect, vmin=-1, vmax=1, interpolation="none")
  391. ax[3].imshow(lateCellSubFirings, cmap="gray_r",
  392. aspect=_aspect, vmin=0, vmax=1, interpolation="none")
  393. ax[4].imshow(ennL2Cells.T, cmap="gray_r",
  394. aspect=_aspect, vmin=-1, vmax=1, interpolation="none")
  395. ax[5].imshow(mlpL2Cells.T, cmap="gray_r",
  396. aspect=_aspect, vmin=-1, vmax=1, interpolation="none")
  397. titles = ["MTL", "ENN", "Backprop"]
  398. for i in range(6):
  399. ax[i].set_yticks([0,30,60,90], labels=[])
  400. ax[i].axhspan(0, 30, color=cC.conceptColors[0], alpha=0.1)
  401. ax[i].axhspan(30, 30 + 30, color=cC.conceptColors[1], alpha=0.1)
  402. ax[i].axhspan(30 + 30, 30 + 30 + 30, color=cC.conceptColors[2], alpha=0.1)
  403. ax[i].set_ylim(89, 0)
  404. ax[i].set_xticks([], labels=[])
  405. ax[i].set_title(titles[i%3])
  406. ax[1].set_xlabel("Early / Layer 1 Neurons")
  407. ax[4].set_xlabel("Late / Layer 2 Neurons")
  408. fig.tight_layout()
  409. fig.savefig(logMan.mediaDir + "/Fig2d.png",
  410. transparent=True,
  411. dpi=300)
  412. plt.close(fig)
  413. """
  414. # Figure 2e: Neuron Average Firing
  415. # Functions
  416. def activateFiring(_avgPeakFiring, _backgroundFiring):
  417. _scaleFactor = 0.5
  418. _xOffset = 1.5
  419. _steepness = 0.1 / np.std(np.mean(_backgroundFiring, axis=1))
  420. _yOffset = 0.5
  421. _normalizedFiring = _avgPeakFiring / np.mean(_backgroundFiring)
  422. return _scaleFactor * np.tanh(_steepness * (_normalizedFiring - _xOffset)) + _yOffset
  423. def processNeurons(_nNeurons, _cellType, _peakFiring, _peakStd, globers):
  424. _activatedFirings = np.zeros((globers["nTrials"], _nNeurons))
  425. for i in range(_nNeurons):
  426. _recording = cF.loadNeuron(i + 1, _cellType)
  427. _preBoundaryFiring = _recording[:, :globers["boundaryBin"]]
  428. _peakFiringRange = _recording[:, int(globers["boundaryBin"] + _peakFiring - 2*_peakStd):int(globers["boundaryBin"] + _peakFiring + 2*_peakStd)]
  429. _avgPeakFiring = np.mean(_peakFiringRange, axis=1)
  430. _activatedFirings[:, i] = activateFiring(_avgPeakFiring, _preBoundaryFiring)
  431. return _activatedFirings
  432. def computeStats(_activatedFirings):
  433. avgNB = np.mean(_activatedFirings[:30], axis=0)
  434. avgSB = np.mean(_activatedFirings[30:30 + 75], axis=0)
  435. avgHB = np.mean(_activatedFirings[30 + 75:], axis=0)
  436. stdNB = np.std(_activatedFirings[:30], axis=0)
  437. stdSB = np.std(_activatedFirings[30:30 + 75], axis=0)
  438. stdHB = np.std(_activatedFirings[30 + 75:], axis=0)
  439. return [avgNB, avgSB, avgHB], [stdNB, stdSB, stdHB]
  440. eventers = {
  441. "nNeurons": 36,
  442. "cellType": "HB",
  443. "peakFiring": 30.1,
  444. "peakStd": 5.5,
  445. }
  446. boundaryers = {
  447. "nNeurons": 42,
  448. "cellType": "B",
  449. "peakFiring": 19.7,
  450. "peakStd": 4.9
  451. }
  452. globers = {
  453. "randomSeed": 42,
  454. "nTrials": 135,
  455. "nBins": 150,
  456. "msPerBin": 10,
  457. "boundaryBin": 50,
  458. "nHiddenNeurons": 3,
  459. "trainTestSplit": 0.5,
  460. }
  461. eventCellActivatedFirings = processNeurons(eventers["nNeurons"], eventers["cellType"], eventers["peakFiring"], eventers["peakStd"], globers)
  462. boundaryCellActivatedFirings = processNeurons(boundaryers["nNeurons"], boundaryers["cellType"], boundaryers["peakFiring"], boundaryers["peakStd"], globers)
  463. eventCellActivatedFiringsAvg, eventCellActivatedFiringsStd = computeStats(eventCellActivatedFirings)
  464. boundaryCellActivatedFiringsAvg, boundaryCellActivatedFiringsStd = computeStats(boundaryCellActivatedFirings)
  465. xAll, yAll = cF.loadEmbeddings()
  466. xAll_NB = xAll[yAll == 0]
  467. xAll_SB = xAll[yAll == 1]
  468. xAll_HB = xAll[yAll == 2]
  469. nNetworks = 20
  470. enn_l1Outputs = np.zeros((nNetworks, 90, 3))
  471. enn_l2Outputs = np.zeros((nNetworks, 90, 3))
  472. mlp_l1Outputs = np.zeros((nNetworks, 90, 3))
  473. mlp_l2Outputs = np.zeros((nNetworks, 90, 3))
  474. mlpAccs = np.zeros(nNetworks)
  475. convThresh = 0.5
  476. for i in range(nNetworks):
  477. xTrain, xTest, yTrain, yTest = train_test_split(xAll, yAll,
  478. train_size=globers["trainTestSplit"],
  479. random_state=42+i)
  480. mdlMLP = MLPClassifier(hidden_layer_sizes=(3,3), max_iter=10000, random_state=42+i, activation="tanh")
  481. mdlMLP.fit(xTrain, yTrain)
  482. mlpAccs[i] = mdlMLP.score(xTest, yTest)
  483. mdlENN = lB.main_0(xTrain, yTrain, 0, globers["nHiddenNeurons"])
  484. xAll_NB_TrialsInds = np.random.choice(range(len(xAll_NB)), 30, replace=False)
  485. xAll_SB_TrialsInds = np.random.choice(range(len(xAll_SB)), 30, replace=False)
  486. xAll_HB_TrialsInds = np.random.choice(range(len(xAll_HB)), 30, replace=False)
  487. xAll_Trials = np.concatenate((xAll_NB[xAll_NB_TrialsInds],
  488. xAll_SB[xAll_SB_TrialsInds],
  489. xAll_HB[xAll_HB_TrialsInds]), axis=0)
  490. enn_l1Output = mdlENN.layers[0].compute_output(xAll_Trials, activate=True) # Tanh activation
  491. enn_l2Output = mdlENN.layers[1].compute_output(enn_l1Output, activate=True) # Tanh activation
  492. # Flip the sign of the firings rates if the average firing rate on NB is positive
  493. for i2 in range(3):
  494. if np.mean(enn_l1Output[:30, i2]) > 0:
  495. enn_l1Output[:, i2] = -enn_l1Output[:, i2]
  496. if np.mean(enn_l2Output[:30, i2]) > 0:
  497. enn_l2Output[:, i2] = -enn_l2Output[:, i2]
  498. enn_l1Outputs[i] = enn_l1Output
  499. enn_l2Outputs[i] = enn_l2Output
  500. if mlpAccs[i] > convThresh:
  501. mlp_l1Output_unAct = mdlMLP.coefs_[0].T @ xAll_Trials.T + mdlMLP.intercepts_[0].reshape(-1, 1)
  502. mlp_l1Output = np.tanh(mlp_l1Output_unAct) # Tanh activation
  503. mlp_l2Output_unAct = mdlMLP.coefs_[1].T @ mlp_l1Output + mdlMLP.intercepts_[1].reshape(-1, 1)
  504. mlp_l2Output = np.tanh(mlp_l2Output_unAct) # Tanh activation
  505. mlp_l1Output = mlp_l1Output.T
  506. mlp_l2Output = mlp_l2Output.T
  507. for i2 in range(3):
  508. if np.mean(mlp_l1Output[:30, i2]) > 0:
  509. mlp_l1Output[:, i2] = -mlp_l1Output[:, i2]
  510. if np.mean(mlp_l2Output[:30, i2]) > 0:
  511. mlp_l2Output[:, i2] = -mlp_l2Output[:, i2]
  512. mlp_l1Outputs[i] = mlp_l1Output
  513. mlp_l2Outputs[i] = mlp_l2Output
  514. # Remove unconverged networks
  515. mlp_l1Outputs = mlp_l1Outputs[mlpAccs > convThresh]
  516. mlp_l2Outputs = mlp_l2Outputs[mlpAccs > convThresh]
  517. enn_l1Outputs = enn_l1Outputs[mlpAccs > convThresh]
  518. enn_l2Outputs = enn_l2Outputs[mlpAccs > convThresh]
  519. enn_l1AvgNBFiring = np.mean(enn_l1Outputs[:,:30,:], axis=1)
  520. enn_l1AvgSBFiring = np.mean(enn_l1Outputs[:,30:30+30,:], axis=1)
  521. enn_l1AvgHBFiring = np.mean(enn_l1Outputs[:,30+30:,:], axis=1)
  522. enn_l2AvgNBFiring = np.mean(enn_l2Outputs[:,:30,:], axis=1)
  523. enn_l2AvgSBFiring = np.mean(enn_l2Outputs[:,30:30+30,:], axis=1)
  524. enn_l2AvgHBFiring = np.mean(enn_l2Outputs[:,30+30:,:], axis=1)
  525. ennl1StdNBFiring = np.std(enn_l1Outputs[:,:30,:], axis=1)
  526. ennl1StdSBFiring = np.std(enn_l1Outputs[:,30:30+30,:], axis=1)
  527. ennl1StdHBFiring = np.std(enn_l1Outputs[:,30+30:,:], axis=1)
  528. ennl2StdNBFiring = np.std(enn_l2Outputs[:,:30,:], axis=1)
  529. ennl2StdSBFiring = np.std(enn_l2Outputs[:,30:30+30,:], axis=1)
  530. ennl2StdHBFiring = np.std(enn_l2Outputs[:,30+30:,:], axis=1)
  531. mlp_l1AvgNBFiring = np.mean(mlp_l1Outputs[:,:30,:], axis=1)
  532. mlp_l1AvgSBFiring = np.mean(mlp_l1Outputs[:,30:30+30,:], axis=1)
  533. mlp_l1AvgHBFiring = np.mean(mlp_l1Outputs[:,30+30:,:], axis=1)
  534. mlp_l2AvgNBFiring = np.mean(mlp_l2Outputs[:,:30,:], axis=1)
  535. mlp_l2AvgSBFiring = np.mean(mlp_l2Outputs[:,30:60,:], axis=1)
  536. mlp_l2AvgHBFiring = np.mean(mlp_l2Outputs[:,30+30:,:], axis=1)
  537. mlp_l1StdNBFiring = np.std(mlp_l1Outputs[:,:30,:], axis=1)
  538. mlp_l1StdSBFiring = np.std(mlp_l1Outputs[:,30:60,:], axis=1)
  539. mlp_l1StdHBFiring = np.std(mlp_l1Outputs[:,30+30:,:], axis=1)
  540. mlp_l2StdNBFiring = np.std(mlp_l2Outputs[:,:30,:], axis=1)
  541. mlp_l2StdSBFiring = np.std(mlp_l2Outputs[:,30:60,:], axis=1)
  542. mlp_l2StdHBFiring = np.std(mlp_l2Outputs[:,30+30:,:], axis=1)
  543. # Plot the results
  544. figWidth = 8
  545. figHeight = 4
  546. fig, ax = plt.subplots(1, 3, figsize=(figWidth, figHeight), subplot_kw={'projection': '3d'})
  547. ax[0].scatter(eventCellActivatedFiringsAvg[0], eventCellActivatedFiringsAvg[1], eventCellActivatedFiringsAvg[2], color=cC.cellColors["Event"], label='Event Cell', alpha=1)
  548. ax[0].scatter(boundaryCellActivatedFiringsAvg[0], boundaryCellActivatedFiringsAvg[1], boundaryCellActivatedFiringsAvg[2], color=cC.cellColors["Boundary"], label='Boundary Cell', alpha=1)
  549. ax[0].legend(bbox_to_anchor=(0., 2), loc='upper left', ncols=2)
  550. ax[1].scatter(enn_l1AvgNBFiring, enn_l1AvgSBFiring, enn_l1AvgHBFiring, color='blue', label='Layer 1', alpha=1)
  551. ax[1].scatter(enn_l2AvgNBFiring, enn_l2AvgSBFiring, enn_l2AvgHBFiring, color='red', label='Layer 2', alpha=1)
  552. #ax[1].legend(bbox_to_anchor=(0.5, 2), loc='upper left', ncols=2)
  553. ax[2].scatter(mlp_l1AvgNBFiring, mlp_l1AvgSBFiring, mlp_l1AvgHBFiring, color='blue', label='Layer 1', alpha=1)
  554. ax[2].scatter(mlp_l2AvgNBFiring, mlp_l2AvgSBFiring, mlp_l2AvgHBFiring, color='red', label='Layer 2', alpha=1)
  555. ax[2].legend(bbox_to_anchor=(-0.5, 2), loc='upper left', ncols=2)
  556. ax[0].set_title("MTL")
  557. ax[1].set_title("ENN")
  558. ax[2].set_title("Backprop")
  559. ax[0].set_xlim([0, 1])
  560. ax[0].set_ylim([0, 1])
  561. ax[0].set_zlim([0, 1])
  562. ax[0].set_xticks([0, 0.5, 1])
  563. ax[0].set_yticks([0, 0.5, 1])
  564. ax[0].set_zticks([0, 0.5, 1])
  565. for i in range(3):
  566. ax[i].set_xlabel("{} Firing".format(r'$\overline{NB}$'))
  567. ax[i].set_ylabel("{} Firing".format(r'$\overline{SB}$'))
  568. ax[i].set_zlabel("{} Firing".format(r'$\overline{HB}$'))
  569. for i in range(1,3):
  570. ax[i].set_xlim([-1, 1])
  571. ax[i].set_ylim([-1, 1])
  572. ax[i].set_zlim([-1, 1])
  573. ax[i].set_xticks([-1, 0, 1])
  574. ax[i].set_yticks([-1, 0, 1])
  575. ax[i].set_zticks([-1, 0, 1])
  576. fig.subplots_adjust(wspace=0.75)
  577. fig.savefig(logMan.mediaDir + "/Fig2e.png",
  578. transparent=True,
  579. dpi=300)
  580. plt.close(fig)

PlotMaker.py at commit 8aee36c, no license · at the source

Overview

Authors: James R. Elder1,2,3, Jie Zheng4,5, Lydia B. Shimelis6, Ueli Rutishauser7,8,9,10, Milo M. Lin1,2,11,12
ORCID iDs: Milo M. Lin
  1. Green Center for Systems Biology, University of Texas Southwestern Medical Center,Dallas, TX 75390 USA
  2. Lyda Hill Dept. of Bioinformatics, University of Texas Southwestern Medical Center,Dallas, TX 75390 USA
  3. Molecular Biophysics Program, University of Texas Southwestern Medical Center,Dallas, TX 75390 USA
  4. Department of Biomedical Engineering, University of California at Davis,Davis, CA 95616 USA
  5. Department of Neurological Surgery, UC Davis Health,Davis, CA 95616 USA
  6. Biomedical Engineering and Neuroscience, Harvard University,Cambridge, MA 02138 USA
  7. Department of Neurosurgery, Cedars-Sinai Medical Center,Los Angeles, CA 90048 USA
  8. Department of Neurology, Cedars-Sinai Medical Center,Los Angeles, CA 90048 USA
  9. Center for Neural Science and Medicine, Department of Biomedical Sciences, Cedars-Sinai Medical Center,Los Angeles, CA 90048 USA
  10. Division of Biology and Biological Engineering, California Institute of Technology,Pasadena, CA 91125 USA
  11. Department of Biophysics, University of Texas Southwestern Medical Ctr.,Dallas, TX 75390 USA
  12. Center for Alzheimer’s and Neurodegenerative Diseases, University of Texas Southwestern Medical Center,Dallas, TX 75390 USA
Institutions: The University of Texas Southwestern Medical Center (United States); University of California, Davis (United States); UC Davis Health (United States); Harvard University (United States); Cedars-Sinai Medical Center (United States); California Institute of Technology (United States)
Journal: Journal of computational neuroscience, volume 54, issue 3, pages 503-514
Dates: received 5 December 2025; accepted 18 June 2026; published online 30 June 2026; in print 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1007/s10827-026-00940-x · PMID 42377689 · PMCID PMC13588848 · OpenAlex W7166740900
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: human (organism)
Methods: Statistics, Machine learning
Keywords: cognitive neuroscience, schema formation
MeSH: Learning*, Models, Neurological*, Neural Networks, Computer*, Neuronal Plasticity*, Neurons*, Algorithms, Animals, Humans, Nerve Net, Soft Computing (* major topic)
Topic: Neural dynamics and brain function (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: National Institutes of Health,United States (5T32GM131963, R00NS126233, R01GM125748)
Citations: not cited yet (Europe PMC); 50 references in the paper

Abstract

The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.

Repository

Its files are read in the Code ↔ Paper reader above, with 6 matches between paragraphs and lines of code.

jre411/bdENN

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 8aee36c26295ac90ceec784a66da1925c225d34a, 4 February 2025
Languages: Python (24)
Size: 3,643 files, 24 scripts
Software Heritage: not archived
Found in: “Data Availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NumPy (20 files), Matplotlib (15 files), scikit-learn (10 files), SciPy (4 files), pandas (2 files), Keras (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
25 files

The paper's code and data availability statement is in the Data section.

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 24 scripts, each with its path and the digest of its content;
  • 6 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Code and data availability statement

The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1007/s10827-026-00940-x.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 2, 28 September 2026

  • Publisher: n/a → Springer Science+Business Media

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 5 authors, 2 keywords, 10 MeSH terms, 1 funder, 37 references.

Cite

This paper

Elder, J. R., Zheng, J., Shimelis, L. B., Rutishauser, U., & Lin, M. M. (2026). Hierarchical learning creates invariant schema within plastic neural networks. Journal of computational neuroscience, 54(3), 503-514. https://doi.org/10.1007/s10827-026-00940-x

BibTeX

@article{elder2026hierarchical,
author = {Elder, James R. and Zheng, Jie and Shimelis, Lydia B. and Rutishauser, Ueli and Lin, Milo M.},
title = {{Hierarchical learning creates invariant schema within plastic neural networks}},
journal = {Journal of computational neuroscience},
year = {2026},
month = jun,
volume = {54},
number = {3},
pages = {503--514},
publisher = {Springer Science+Business Media},
issn = {0929-5313},
doi = {10.1007/s10827-026-00940-x},
url = {https://doi.org/10.1007/s10827-026-00940-x},
pmid = {42377689},
pmcid = {PMC13588848}
}

RIS

TY - JOUR
AU - Elder, James R.
AU - Zheng, Jie
AU - Shimelis, Lydia B.
AU - Rutishauser, Ueli
AU - Lin, Milo M.
TI - Hierarchical learning creates invariant schema within plastic neural networks
T2 - Journal of computational neuroscience
J2 - J Comput Neurosci
PY - 2026
DA - 2026/06/30
VL - 54
IS - 3
SP - 503
EP - 514
SN - 0929-5313
PB - Springer Science+Business Media
DO - 10.1007/s10827-026-00940-x
UR - https://doi.org/10.1007/s10827-026-00940-x
LA - en
ER -

CSL-JSON

{
"id": "10.1007/s10827-026-00940-x",
"type": "article-journal",
"title": "Hierarchical learning creates invariant schema within plastic neural networks",
"container-title": "Journal of computational neuroscience",
"author": [
{
"family": "Elder",
"given": "James R."
},
{
"family": "Zheng",
"given": "Jie"
},
{
"family": "Shimelis",
"given": "Lydia B."
},
{
"family": "Rutishauser",
"given": "Ueli"
},
{
"family": "Lin",
"given": "Milo M."
}
],
"container-title-short": "J Comput Neurosci",
"volume": "54",
"issue": "3",
"page": "503-514",
"DOI": "10.1007/s10827-026-00940-x",
"PMID": "42377689",
"PMCID": "PMC13588848",
"ISSN": "0929-5313",
"publisher": "Springer Science+Business Media",
"URL": "https://doi.org/10.1007/s10827-026-00940-x",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
30
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.1038/s42003-026-10169-0 [code]
Shared representations in brains and models reveal a two-route cortical organization during scene perception.
Journal: Communications biology
In common: scikit-learn, pandas, SciPy, 2 other tools, 3 references
[2] doi:10.1162/imag.a.1207 [code]
Investigating the temporal dynamics and modeling of mid-level feature representations in humans.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: scikit-learn, pandas, SciPy, 2 other tools, 3 references
[3] doi:10.1186/s13321-026-01177-7 [code]
A pipeline for developing AI-driven models to predict molecular initiating events: a case study on neural tube defects.
Journal: Journal of cheminformatics
In common: scikit-learn, pandas, SciPy, 2 other tools, 2 references
[4] doi:10.1371/journal.pcbi.1014656 [code]
Contrastive learning to fine-tune feature extraction models for the visual cortex.
Journal: PLoS computational biology
In common: scikit-learn, pandas, SciPy, 2 other tools, 2 references
[5] doi:10.1038/s42003-026-10094-2 [code]
E/I imbalance and internal noise cause weak neural representations and face recognition challenges in ASD.
Journal: Communications biology
In common: scikit-learn, pandas, SciPy, 2 other tools, 2 references
[6] doi:10.1016/j.isci.2026.116439 [code]
Decoding the role of transcriptomic clocks in the human prefrontal cortex.
Journal: iScience
In common: Keras, scikit-learn, pandas, 3 other tools, 1 reference
[7] doi:10.1038/s41597-026-07248-6 [code]
A large-scale fMRI dataset for vision-language semantic association.
Journal: Scientific data
In common: scikit-learn, pandas, SciPy, 2 other tools, 2 references
[8] doi:10.1016/j.bpj.2026.06.005 [code]
Curvature-based machine-learning method for automated segmentation of dendritic spines.
Journal: Biophysical journal
In common: Keras, scikit-learn, pandas, 3 other tools, 1 reference
[9] doi:10.1038/s41467-026-72687-z [code]
Chordless cycle filtrations for dimensionality detection in complex networks via topological data analysis.
Journal: Nature communications
In common: Keras, scikit-learn, pandas, 3 other tools, 1 reference
[10] doi:10.1038/s41598-026-52672-8 [code]
Validation of portable, semi-dry electrode-based electroencephalography device for its application in brain-computer interface solutions.
Journal: Scientific reports
In common: Keras, scikit-learn, SciPy, 2 other tools, 1 reference

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.

Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.