Skip to content

Commit 09731da

Browse files
updating notebook params
1 parent 7ee6eac commit 09731da

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

notebooks/rastermap_largescale.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@
103103
"source": [
104104
"model = Rastermap(n_clusters=100, # number of clusters to compute\n",
105105
" n_PCs=128, # number of PCs to use\n",
106-
" locality=0.75, # locality in sorting to find sequences (this is a value from 0-1)\n",
107-
" time_lag_window=5, # use future timepoints to compute correlation\n",
106+
" locality=0., # locality in sorting to find sequences (this is a value from 0-1)\n",
108107
" grid_upsample=10, # default value, 10 is good for large recordings\n",
109108
" ).fit(spks)\n",
110109
"y = model.embedding # neurons x 1\n",

notebooks/rastermap_singleneurons.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"outputs": [],
2828
"source": [
2929
"!pip install numpy>=1.24 # (required for google colab)\n",
30-
"!pip install rastermap \n",
30+
"!pip install rastermap\n",
3131
"!pip install matplotlib"
3232
]
3333
},
@@ -95,7 +95,7 @@
9595
"source": [
9696
"model = Rastermap(n_clusters=None, # None turns off clustering and sorts single neurons \n",
9797
" n_PCs=64, # use fewer PCs than neurons\n",
98-
" locality=0.15, # some locality in sorting (this is a value from 0-1)\n",
98+
" locality=0.1, # some locality in sorting (this is a value from 0-1)\n",
9999
" time_lag_window=15, # use future timepoints to compute correlation\n",
100100
" grid_upsample=0, # 0 turns off upsampling since we're using single neurons\n",
101101
" ).fit(spks)\n",
@@ -255,7 +255,7 @@
255255
"name": "python",
256256
"nbconvert_exporter": "python",
257257
"pygments_lexer": "ipython3",
258-
"version": "3.8.10"
258+
"version": "3.9.16"
259259
},
260260
"orig_nbformat": 4,
261261
"vscode": {

paper/fig4.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
"\n",
6464
"model = Rastermap(n_clusters=None, \n",
6565
" n_PCs=64, \n",
66-
" locality=0.1, # 0.1<-include nan's, #0.05 <- interp nan's #0.25 <- remove nan's\n",
67-
" time_lag_window=15, # 15<- include nan's, #10 <- interp nan's # 20 <- remove nan's\n",
66+
" locality=0.1, \n",
67+
" time_lag_window=15, \n",
6868
" symmetric=False,\n",
6969
" grid_upsample=0,\n",
7070
" ).fit(spks)\n",

0 commit comments

Comments
 (0)