Exploring neural manifolds across a wide range of intrinsic dimensions.
The 1 match
- [1] § Materials and methods › Recurrent neural networks performing cog-tasks ↔ Code/task_handler2.py, lines 150–165 · score 0.60 · connection matrices, 0–1, Win, Wout, Wrec
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 · 601 lines · 20 KB · MIT · 1 match
- import numpy as np
- import matplotlib.pyplot as plt
- import h5py
- from ID_estimator import *
- from network_structures import BPTT
- import tensorflow as tf
- import sys
- sys.path.append('../multitask/')
- from task import generate_trials, rule_name
- from network import Model
- import tools
- from pyFCI import pyFCI
- class Task:
- # Class to handle all operations each task needs
- def __init__(self, task_name, task_dir, basedir=".", batch_size=200, verbose=False, **kwargs):
- # initialize all the matrices
- initial_time = kwargs.get('initial_time', None)
- self.task_name = task_name
- self.basedir = basedir
- self.task_dir = task_dir
- self.q = batch_size
- with h5py.File(f"{basedir}/{task_dir}/RNN_params.h5", "r") as f:
- self.Win = f["w_in"][:]
- self.Wrec = f["w_rec"][:]
- self.Wout = f["w_out"][:]
- self.brec = f["brec"][:]
- self.bout = f["bout"][:]
- with h5py.File(f"{basedir}/{task_dir}/network_activity.h5", "r") as f:
- self.r = f["r"][:]
- self.z = f["z"][:]
- self.x_train = f["x_train"][:]
- self.y_train = f["y_train"][:]
- if verbose:
- print(f"Task {task_name} loaded.")
- print(f"Number of neurons: {np.size(self.Win.T[0])}")
- def network(self):
- # compute the back-propagation through time on the given task
- r, z = BPTT(self.Win.T, self.Wrec.T, self.Wout.T, self.brec, self.bout, self.x_train)
- self.r = r
- self.z = z
- return r, z # return recurrent and output part
- def network_yang(self, task_name=None, basedir=None,batch_size=200, **kwargs):
- basedir = self.basedir if basedir is None else basedir
- task_name = self.task_name if task_name is None else task_name
- model_dir = basedir+"/"+ task_name
- rule = task_name
- model = Model(model_dir)
- hp = model.hp
- initial_time = kwargs.get('initial_time', None)
- with tf.compat.v1.Session() as sess:
- model.restore()
- #trial = generate_trials(rule, hp, mode='test',batch_size = 1)
- if initial_time:
- trial = generate_trials(rule, hp, mode='random',batch_size = batch_size, initial_time = initial_time)
- else:
- trial = generate_trials(rule, hp, mode='random',batch_size = batch_size)
- feed_dict = tools.gen_feed_dict(model, trial, hp)
- h, y_hat = sess.run([model.h, model.y_hat], feed_dict=feed_dict)
- # All matrices have shape (n_time, n_condition, n_neuron)
- # print(np.shape(trial.x), np.shape(h), np.shape(y_hat))
- if initial_time:
- h = h[initial_time:,:,:]
- y_hat = y_hat[initial_time:,:,:]
- var_list = model.var_list
- # evaluate the parameters after training
- params = [sess.run(var) for var in var_list]
- # get name of each variable
- names = [var.name for var in var_list]
- y_trained = np.vstack(np.swapaxes(y_hat, 0, 1))
- h_trained = np.vstack(np.swapaxes(h, 0, 1))
- self.r = h_trained
- self.z = y_trained
- return h_trained, y_trained
- def find_relevant_points(self):
- # find relevant points for the task
- x_train = self.x_train
- y_train = self.y_train
- trials_len = x_train.shape[0]//self.q
- self.trials_len = trials_len
- stim = np.where(x_train[:trials_len,1:65].max(1)>0.3)[0]
- stim_start = stim[0] if len(stim)>0 else 0
- stim_end = stim[-1] if len(stim)>0 else 0
- go = np.where(y_train[:trials_len,0]<0.8)[0]
- go_start = go[0] if len(go)>0 else 0
- go_end = go[-1] if len(go)>0 else 0
- self.stim_start = stim_start
- self.stim_end = stim_end
- self.go_start = go_start
- self.go_end = go_end
- return stim_start, stim_end, go_start, go_end, trials_len
- def compute_angle(self):
- # decode target angle from output
- # z: output part
- # n: trial length
- angle = np.zeros(self.q)
- z = self.z
- n = self.trials_len
- q = self.q
- for i in range(q):
- f = z[n*(i+1)-10:n*(i+1),1:]
- fm = np.mean(f,axis=0)
- angle[i] = np.argmax(fm)
- self.angle = angle
- return angle
- def split_data(self):
- q = self.q
- n = self.trials_len
- n1 = self.stim_start
- n2 = self.go_start
- beginning = np.repeat(np.arange(0, n*q, n), n1) + np.tile(np.arange(0, n1), q)
- if n2>n1:
- middle = np.repeat(np.arange(0, n*q, n), n2-n1) + np.tile(np.arange(n1, n2), q)
- else:
- middle = np.array([])
- final = np.repeat(np.arange(0, n*q, n), n-n2) + np.tile(np.arange(n2, n), q)
- self.beginning = beginning
- self.middle = middle
- self.final = final
- def connectivity_matrix(self):
- # plot the connectivity matrix
- fig, ax = plt.subplots(2, 2, figsize=(4, 4),tight_layout=True)
- A = ax[0,0].imshow(self.Win.T)
- plt.colorbar(A)
- ax[0,0].set_title("$W_{in}$")
- B = ax[0,1].imshow(self.Wrec.T)
- plt.colorbar(B)
- ax[0,1].set_title("$W_{rec}$")
- C = ax[1,0].imshow(self.Wout.T)
- plt.colorbar(C)
- ax[1,0].set_title("$W_{out}$")
- plt.show()
- def network_plot(self, lim):
- # display the dynamics of the network
- fig, axs = plt.subplots(2, 2, figsize=(7, 4),tight_layout=True)
- fig.suptitle("Train")
- axs[0,0].plot(self.z[:,1:65])
- axs[0,0].set_xlim(0, lim)
- axs[0,0].set_xlabel("time step (ms)")
- axs[0,0].set_ylabel("output")
- axs[0,1].plot(self.y_train[:,1:65])
- axs[0,1].set_xlim(0, lim)
- axs[0,1].set_xlabel("time step (ms)")
- axs[0,1].set_ylabel("target")
- axs[1,0].plot((self.z - self.y_train)[:,1:65])
- axs[1,0].set_xlim(0, lim)
- axs[1,0].set_title("Training error")
- axs[1,0].set_xlabel("time step (ms)")
- axs[1,0].set_ylabel(r"$\Delta$")
- axs[1,1].set_axis_off()
- plt.show()
- def sample_plots(self, lim=200):
- """
- Plots the values of the different input an output channels
- task : task object with the task data and the trial information
- lim: time limit
- """
- relevant = self.find_relevant_points()
- x_train = self.x_train[:lim+1]
- z = self.z[:lim+1]
- r = self.r[:lim+1]
- len_trial = self.trials_len
- fig = plt.figure(figsize=(8,6))
- gs = fig.add_gridspec(4, height_ratios=[1.4,1,1.07,1.07], hspace=0, bottom=0.14,left=0.12)
- axs = gs.subplots(sharex=True)
- numcols = lim+1
- numrows = 32
- norm_r = (r - r.mean()) / r.std()
- #print(norm_r.min(), norm_r.max())
- #adj_r = r - r.min()
- #adj_r /= adj_r.max()
- #print(adj_r.min(), adj_r.max())
- axs[0].imshow(norm_r.T, vmin=-1,vmax=10, cmap="viridis",origin="lower", aspect="auto")
- axs[0].set_yticks([50,150,250],labels=(50,150,250), fontsize="x-large")
- igo = np.repeat(x_train[:,0].reshape(1,-1), 2, axis=0)
- i1go = np.concatenate((igo,x_train[:lim+1,1:33].T), axis=0)
- fix = np.repeat(z[:,0].reshape(1,-1), 2, axis=0)
- ofix = np.concatenate((fix,z[:,1:33].T), axis=0)
- axs[1].imshow(x_train[:,33:-1].T, vmin=0,vmax=1, origin="lower",extent=(-0.5,numcols-0.5,-0.5,numrows-0.5), aspect="auto")
- axs[2].imshow(i1go, vmin=0,vmax=1, origin="lower",extent=(-0.5,numcols-0.5,-2.5,numrows-0.5), aspect="auto")
- axs[3].imshow(ofix, vmin=0,vmax=1, origin="lower", extent=(-0.5,numcols-0.5,-2.5,numrows-0.5), aspect="auto")
- for i in range(lim//len_trial):
- axs[0].axvline((i+1)*len_trial-0.5, color="lime", linewidth=1.5)
- axs[1].axvline((i+1)*len_trial-0.5, color="lime", linewidth=1.5)
- axs[2].axvline((i+1)*len_trial-0.5, color="lime", linewidth=1.5)
- axs[3].axvline((i+1)*len_trial-0.5, color="lime", linewidth=1.5)
- axs[2].axhline(-0.5, color="darkslategray", linewidth=1.5)
- axs[3].axhline(-0.5, color="slategray", linewidth=1.5)
- axs[1].set_xlim(0, lim)
- axs[2].set_xlim(0, lim)
- axs[3].set_xlim(0, lim)
- axs[0].set_ylabel(r"$\mathbf{N}\ $",rotation=0, fontsize="x-large")
- axs[1].set_ylabel(r"$\mathbf{I_2}$",rotation=0, fontsize="x-large")
- axs[2].set_ylabel(r"$\mathbf{I_1}$",rotation=0, fontsize="x-large")
- axs[3].set_ylabel(r"$\mathbf{O}$", rotation=0, fontsize="x-large")
- axs[3].set_xlabel("t", fontweight="bold")
- axs[2].annotate(r"$\mathbf{I_{fix}}$", xy=(0, -1.5), xycoords="data", xytext=(-38, -0.7), textcoords="axes points",fontsize="large", fontweight="bold")
- axs[3].annotate(r"$\mathbf{O_{fix}}$", xy=(0, -1.5), xycoords="data", xytext=(-38, -0.7), textcoords="axes points",fontsize="large", fontweight="bold")
- axs[0].spines["bottom"].set_edgecolor("silver")
- axs[1].spines["top"].set_edgecolor("silver")
- axs[1].spines["bottom"].set_edgecolor("darkslategray")
- axs[2].spines["top"].set_edgecolor("darkslategray")
- axs[2].spines["bottom"].set_edgecolor("silver")
- axs[3].spines["top"].set_edgecolor("silver")
- axs[1].set_yticks([0,16,32],labels=(0,r"$\pi$",r"$2\pi$"), fontsize="x-large")
- axs[2].set_yticks([0,16],labels=(0,r"$\pi$"), fontsize="x-large")
- axs[3].set_yticks([0,16],labels=(0,r"$\pi$"), fontsize="x-large")
- fig.align_ylabels()
- def ID_FCI_estimator(self, Niter, full, method = "full", **kwargs):
- """
- compute the intrinsic dimension using the FCI method
- Parameters:
- -----------
- Niter : int
- the number of iterations if method is "mc"
- full : boolean
- if True returns also the fit parameters and the fci integral
- method : string
- the method used to compute the intrinsic dimension, default is "full",
- the other option is "mc".
- Returns:
- --------
- id_fci : float
- the intrinsic dimension using FCI
- """
- if method == "mc":
- # compute the FCI using montecarlo
- if full:
- id_fci, fit, fci = ID_FCI_MC(self.r, Niter, full, **kwargs)
- else:
- id_fci = ID_FCI_MC(self.r, Niter, **kwargs)
- elif method == "full":
- # compute the FCI
- if full:
- id_fci, fit, fci = ID_FCI(self.r, full, **kwargs)
- else:
- id_fci = ID_FCI(self.r, **kwargs)
- else:
- raise ValueError("method must be 'full' or 'mc'")
- self.id_fci = id_fci
- if full:
- return id_fci, fit, fci
- else:
- return id_fci
- def ID_pca(self,normalize, full):
- """
- Compute the intrinsic dimension using the PCA explained variance.
- Parameters
- ----------
- normalize : boolean
- if True, the data points are normalized
- full : boolean
- if True returns also the PCs and the explained variance
- Returns
- -------
- id_pca : float
- the intrinsic dimension using PCA
- y : array
- the projected data points
- v : array
- the explained variance ratio
- """
- if full:
- id_pca, y, v = ID_PCA(self.r, normalize, full)
- self.id_pca = id_pca
- return id_pca, y, v
- else:
- id_pca = ID_PCA(self.r, normalize)
- self.id_pca = id_pca
- return id_pca
- def ID_participation_ratio(self):
- """
- Compute the intrinsic dimension using the participation ratio.
- Parameters
- ----------
- None
- Returns
- -------
- id_pr : float
- The intrinsic dimension using the participation ratio
- """
- d_pr = participation_ratio(self.r)
- self.id_pr = d_pr
- return d_pr
- def ID_parallel_analysis(self,data_range = None,**kwargs):
- """
- Compute the intrinsic dimension using the parallel analysis.
- Parameters
- ----------
- data_range : array, optional, default None
- the range of the data for the parallel analysis
- kwargs : dict
- keyword arguments for the parallel analysis:
- - num_shuffles: default 250,
- - percentile: default 95
- Returns
- -------
- id_pa : float
- The intrinsic dimension using the parallel analysis
- """
- if data_range is None:
- id_pa = id_parallel_analysis(self.r, **kwargs)
- else:
- id_pa = id_parallel_analysis(self.r[data_range], **kwargs)
- self.id_pa = id_pa
- return id_pa
- def id_twoNN(self, twonn=True, scale_dependent=False,**kwargs):
- # compute the intrinsic dimension using two nearest neighbors
- drange = kwargs.get('drange', None)
- if twonn and scale_dependent:
- id_2NN, id_2NN_scale, fitting_params = ID_twoNN_dadapy(self.r[drange].squeeze(), twonn, scale_dependent, **kwargs)
- self.id_2NN = id_2NN
- self.id_2NN_scale = id_2NN_scale
- return id_2NN, id_2NN_scale, fitting_params
- elif twonn and not scale_dependent:
- id_2NN, fitting_params = ID_twoNN_dadapy(self.r[drange].squeeze(), twonn, scale_dependent, **kwargs)
- self.id_2NN = id_2NN
- return id_2NN, fitting_params
- elif not twonn and scale_dependent:
- id_2NN_scale, fitting_params = ID_twoNN_dadapy(self.r[drange].squeeze(), twonn, scale_dependent, **kwargs)
- self.id_2NN_scale = id_2NN_scale
- return id_2NN_scale, fitting_params
- def ID(self):
- # compute the intrinsic dimension
- d, x, y = ID_estimator(self.r)
- self.d = d
- self.x = x
- self.y = y
- def collect_ID_FCI(self, n_iter = 20, method = "mc", **kwargs):
- """
- compute the intrinsic dimension using FCI
- parameters:
- -----------
- n_iter : int
- the number of iterations if method is "mc"
- method : string
- the method used to compute the intrinsic dimension, default is "mc",
- the other option is "full".
- """
- q = self.q
- n = self.trials_len
- n1 = self.stim_start
- n2 = self.go_start
- r = self.r
- norm_r = pyFCI.center_and_normalize(r)
- beginning = self.beginning
- middle = self.middle
- final = self.final
- if method == "full":
- d_beg_fci = ID_FCI(norm_r[beginning,:], normalize=False, **kwargs)
- else:
- d_beg_fci = ID_FCI_MC(norm_r[beginning,:], n_iter, normalize=False, **kwargs)
- print(f"Beginning dimension: {d_beg_fci}")
- if n2-n1>0:
- if method == "full":
- d_mid_fci = ID_FCI(norm_r[middle,:], normalize=False, **kwargs)
- else:
- d_mid_fci = ID_FCI_MC(norm_r[middle,:], n_iter, normalize=False, **kwargs)
- print(f"Middle dimension: {d_mid_fci}")
- else:
- d_mid_fci = 0
- if method == "full":
- d_fin_fci = ID_FCI(norm_r[final,:], normalize=False, **kwargs)
- else:
- d_fin_fci = ID_FCI_MC(norm_r[final,:], n_iter, normalize=False, **kwargs)
- print(f"Final dimension: {d_fin_fci}")
- if method == "full":
- d_tot_fci = ID_FCI(norm_r, normalize=False, **kwargs)
- else:
- d_tot_fci = ID_FCI_MC(norm_r, n_iter, normalize=False, **kwargs)
- print(f"Total dimension: {d_tot_fci}")
- dim_vector_fci = np.array([d_beg_fci, d_mid_fci, d_fin_fci, d_tot_fci])
- self.dim_fci_regions = dim_vector_fci
- return dim_vector_fci
- def collect_ID_twoNN(self, display=False, **kwargs):
- beginning = self.beginning
- middle = self.middle
- final = self.final
- r = self.r
- # norm_r = (r - np.mean(r, axis=0)) / np.std(r, axis=0)
- if len(beginning)>10:
- d_beg, beg = ID_twoNN_dadapy(r[beginning, :])
- print(f"Beginning dimension: {d_beg}")
- else:
- d_beg = 0
- if len(middle)>10:
- d_mid, mid = ID_twoNN_dadapy(r[middle, :])
- print(f"Middle dimension: {d_mid}")
- else:
- d_mid = 0
- if len(final)>10:
- d_fin, fin = ID_twoNN_dadapy(r[final, :])
- print(f"Final dimension: {d_fin}")
- else:
- d_fin = 0
- d_tot, tot = ID_twoNN_dadapy(r)
- print(f"Total dimension: {d_tot}")
- dim_vector = np.array([d_beg, d_mid, d_fin, d_tot])
- self.dim_twonn_regions = dim_vector
- if display:
- self.display_ID(beg, mid, fin, tot)
- return dim_vector
- def display_ID(self, beg, mid, fin, tot):
- # plot the intrinsic dimension
- dims = self.dim_vector_twonn
- d_beg = dims[0]
- d_mid = dims[1]
- d_fin = dims[2]
- d_tot = dims[3]
- fig, axs = plt.subplots(2, 2, figsize=(10, 8))
- axs[0, 0].scatter(beg[1], beg[0], s=20, marker="x")
- axs[0, 0].plot(beg[1], beg[1]*d_beg, c="red")
- axs[0, 0].set_title(f"Beginning dimension: {np.round(d_beg, 2)}")
- axs[0, 1].scatter(mid[1], mid[0], s=20, marker="x")
- axs[0, 1].plot(mid[1], mid[1]*d_mid, c="red")
- axs[0, 1].set_title(f"Middle dimension: {np.round(d_mid, 2)}")
- axs[1, 0].scatter(fin[1], fin[0], s=20, marker="x")
- axs[1, 0].plot(fin[1], fin[1]*d_fin, c="red")
- axs[1, 0].set_title(f"Final dimension: {np.round(d_fin, 2)}")
- axs[1, 1].scatter(tot[1], tot[0], s=10, marker="x")
- axs[1, 1].plot(tot[1], tot[1]*d_tot, c="red")
- axs[1, 1].set_title(f"Total dimension: {np.round(d_tot, 2)}")
- plt.show()
- def scale_ID_twoNN(self, display = False, **kwargs):
- # compute scale dependent ID for every range defined before
- beginning = self.beginning
- middle = self.middle
- final = self.final
- r = self.r
- # compute the intrinsic dimension
- if len(beginning)>10:
- dim_beg, beg = ID_twoNN_dadapy(r[beginning, :],twonn=False, scale_dependent=True, **kwargs)
- else:
- dim_beg = 0
- if len(middle)>10:
- dim_mid, mid = ID_twoNN_dadapy(r[middle, :],twonn=False, scale_dependent=True, **kwargs)
- else:
- dim_mid = 0
- if len(final)>10:
- dim_fin, fin = ID_twoNN_dadapy(r[final, :],twonn=False, scale_dependent=True, **kwargs)
- else:
- dim_fin = 0
- dim_tot, tot = ID_twoNN_dadapy(r,twonn=False, scale_dependent=True, **kwargs)
- # compute and return the four dimensions
- res = np.array([dim_beg, dim_mid, dim_fin, dim_tot])
- self.dim_twonn_scale_regions = res
- if display:
- if "beg" in locals():
- fig, axs = plt.subplots(2, 2, figsize=(12, 7))
- axs[0, 0].errorbar(beg[1], beg[0], yerr=beg[2], marker="o", capsize=4)
- axs[0, 0].set_title(f"Beginning dimension")
- #axs[0, 0].set_xscale("log")
- axs[0, 0].grid(axis="y")
- if "mid" in locals():
- axs[0, 1].errorbar(mid[1], mid[0], yerr=mid[2], marker="o", capsize=4)
- axs[0, 1].set_title(f"Middle dimension")
- #axs[0, 1].set_xscale("log")
- axs[0, 1].grid(axis="y")
- if "fin" in locals():
- axs[1, 0].errorbar(fin[1], fin[0], yerr=fin[2], marker="o", capsize=4)
- axs[1, 0].set_title(f"Final dimension")
- #axs[1, 0].set_xscale("log")
- axs[1, 0].grid(axis="y")
- axs[1, 1].errorbar(tot[1], tot[0], yerr=tot[2], marker="o", capsize=4)
- axs[1, 1].set_title(f"Total dimension")
- #axs[1, 1].set_xscale("log")
- axs[1, 1].grid(axis="y")
- plt.show()
- return res, dim_beg, dim_mid, dim_fin, dim_tot
- def find_dim(self, dim):
- # find the dimension from the plateaux in the scale dependent ID
- plateaus, _, _ = find_plateaus(dims, min_length=2, tolerance = 0.3)
- if len(plateaus) > 0:
- means = []
- for p in plateaus:
- means.append(np.mean(dims[p[0]:p[1]]))
- p_dim = np.min(means)
- else:
- p_dim = ids_scaling[-1]
- return p_dim
task_handler2.py at commit 8fd202d, under MIT · at the source
Overview
- Physics and Astronomy Department, University of Padova, Padova, Italy
- Istituto Nazionale di Fisica Nucleare, Sezione di Padova, Padova, Italy
- Department of Mathematical, Physical and Computer Sciences, University of Parma, Parma, Italy
- Padova Neuroscience Center, University of Padova, Padova, Italy
Abstract
The rapid surge in the number of simultaneously recorded neurons demands reliable tools to explore the latent geometry of high-dimensional neural spaces. Within such spaces, neuronal activity typically lies on a subspace or manifold characterized by an intrinsic dimension (ID) that is much lower than the total number of recorded units. The ID can provide immediate information about the neural code, such as the minimum number of encoded variables and the relation between collective and individual neural activity. Existing studies rely on disparate and potentially unreliable ID estimators, which can contribute to conflicting reports of high-dimensional vs. low-dimensional manifolds. Here, we propose a robust and versatile pipeline for ID estimation, exploiting a local version of the full correlation integral estimator (lFCI). Being able to simultaneously cope with high dimensionality and non-linearity, lFCI overcomes some major limitations of common ID estimation methods. We prove the strength and accuracy of lFCI by applying it to synthetic benchmark data by Altan et al., 2019, where other methods typically underestimate the ID. We apply lFCI to study neural manifolds arising in recurrent neural networks trained on the 20 tasks of the well-known ‘cog-Task’ battery. Across tasks and training repetitions, lFCI uncovers a consistently low ID, which we show to be fundamentally related to the task structure. Finally, we apply lFCI to a reference experimental dataset by Stringer et al., 2019, comprising visual responses to a large set of natural images, strongly supporting previous reports that responses are organized in a high-dimensional manifold. lFCI has the potential to shed light on the current debate about the geometry of neural codes, and its dependence on structural constraints and computational goals in biological and artificial neural networks.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 1 match between paragraphs and lines of code.
JFadanni/ExploringNeuralManifolds
8fd202d5ef149c5b77e1cc25cd06863f849422eb, 21 September 2026Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
18 files
- Code/
ID_estimator.py , Python, 245 lines - Code/
compute_local_fci_smart_ , Python, 145 linesall.py - Code/
determine_local_fci_smar , Python, 151 linest_all.py - Code/
download_extract_dataset , Shell, 19 lines.sh - Code/
id_model_datasets_new.ip , Jupyter, 735 linesynb - Code/
lFCI_analysis_HighDimDat , Python, 128 linesa.py - Code/
lFCI_analysis_Model_data , Jupyter, 517 linessets.ipynb - Code/
lFCI_analysis_visualizat , Jupyter, 1,002 linesion_HighDimData.ipynb - Code/
lfci_functions.py , Python, 228 lines - Code/
task_expanded.py , Python, 228 lines - Code/
task_handler2.py , Python, 601 lines, 1 match - Code/
utils.py , Python, 15 lines - ID_pipeline/
ID_estimation_simple.ipy , Jupyter, 360 linesnb - ID_pipeline/
lfci_functions.py , Python, 807 lines - demo/
ID_estimation.ipynb , Jupyter, 291 lines - demo/
lfci_functions.py , Python, 807 lines - LICENSE, License, 21 lines
- README.md, Text, 57 lines
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;
- 16 scripts, each with its path and the digest of its content;
- 1 match 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.
Data Availability
The source code and data used to produce the results and analyses presented in this manuscript are available on GitHub: https://
Reproduced under the paper's license (CC BY), from the paper cited above.
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 1, 28 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 5 authors, 8 MeSH terms, 1 funder, 62 references.
Cite
This paper
Fadanni, J., Pacelli, R., Zucchetta, A., Rotondo, P., & Allegra, M. (2026). Exploring neural manifolds across a wide range of intrinsic dimensions. PLoS computational biology, 22(4), e1014162. https://
BibTeX
@article{fadanni2026expl
author = {Fadanni, Jacopo and Pacelli, Rosalba and Zucchetta, Alberto and Rotondo, Pietro and Allegra, Michele},
title = {{Exploring neural manifolds across a wide range of intrinsic dimensions}},
journal = {PLoS computational biology},
year = {2026},
month = apr,
volume = {22},
number = {4},
pages = {e1014162},
publisher = {PLOS},
issn = {1553-734X},
doi = {10.1371/
url = {https://
pmid = {41931565},
pmcid = {PMC13068349}
}
RIS
TY - JOUR
AU - Fadanni, Jacopo
AU - Pacelli, Rosalba
AU - Zucchetta, Alberto
AU - Rotondo, Pietro
AU - Allegra, Michele
TI - Exploring neural manifolds across a wide range of intrinsic dimensions
T2 - PLoS computational biology
J2 - PLoS Comput Biol
PY - 2026
DA - 2026/
VL - 22
IS - 4
SP - e1014162
SN - 1553-734X
PB - PLOS
DO - 10.1371/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1371/
"type": "article-journal",
"title": "Exploring neural manifolds across a wide range of intrinsic dimensions",
"container-title": "PLoS computational biology",
"author": [
{
"family": "Fadanni",
"given": "Jacopo"
},
{
"family": "Pacelli",
"given": "Rosalba"
},
{
"family": "Zucchetta",
"given": "Alberto"
},
{
"family": "Rotondo",
"given": "Pietro"
},
{
"family": "Allegra",
"given": "Michele"
}
],
"container-title-short":
"volume": "22",
"issue": "4",
"page": "e1014162",
"DOI": "10.1371/
"PMID": "41931565",
"PMCID": "PMC13068349",
"ISSN": "1553-734X",
"publisher": "PLOS",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
3
]
]
}
}
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/s41593-026-02333-w [code]
- Learning shapes neural geometry in the primate prefrontal cortex.Journal: Nature neuroscienceIn common: scikit-learn, pandas, SciPy, 2 other tools, 8 references
- [2] doi:10.1080/26941899.2026.2619222
- Neurodatascience: Past, Present, and Future.Journal: Data science in scienceIn common: computational, 10 references
- [3] doi:10.3390/biomimetics11080569 [code]
- Pretraining of Embodied Recurrent Networks Bridges the Gap Between Artificial and Cortical Neural Activities.Journal: Biomimetics (Basel, Switzerland)In common: scikit-learn, SciPy, Matplotlib, 1 other tool, 8 references
- [4] doi:10.1371/journal.pbio.3003831 [code]
- Disinhibitory signaling enables flexible coding of top-down information in cortical networks.Journal: PLoS biologyIn common: TensorFlow, h5py, scikit-learn, 4 other tools, 5 references
- [5] doi:10.1038/s41598-026-55225-1 [code]
- Benchmarking criteria to determine latent linear dimensionality in neural data.Journal: Scientific reportsIn common: pandas, 9 references
- [6] doi:10.1177/26331055261460858 [code]
- The Geometric Signatures of Brain State Transitions: Recursive Informational Curvature Reveals Hidden Dynamics in Primate Cortex.Journal: Neuroscience insightsIn common: scikit-learn, pandas, SciPy, 2 other tools, 7 references
- [7] doi:10.1016/j.neuron.2026.07.016 [code]
- Inferring brain-wide interactions using data-constrained recurrent neural network models.Journal: NeuronIn common: Matplotlib, NumPy, 8 references
- [8] doi:10.1038/s41467-026-75924-7 [code]
- Data-driven reduced modeling of neural dynamics.Journal: Nature communicationsIn common: h5py, scikit-learn, SciPy, 2 other tools, 6 references
- [9] doi:10.1038/s41467-026-76104-3 [code]
- Sensorimotor remapping drives task specialization in prefrontal cortex.Journal: Nature communicationsIn common: scikit-learn, pandas, SciPy, 2 other tools, 5 references
- [10] doi:10.1038/s41467-026-74347-8 [code]
- Compositionality of social gaze in the prefrontal-amygdala circuits.Journal: Nature communicationsIn common: scikit-learn, pandas, SciPy, 2 other tools, 5 references
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.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 16 scripts, and 1 match between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:be74e574d0b43311…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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.
