Skip to content

Commit aa899ea

Browse files
committed
fix spelling errors
1 parent 1e6ade4 commit aa899ea

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

docs/higher-order/GLM_pynapple_nemos.ipynb

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@
836836
},
837837
{
838838
"cell_type": "code",
839-
"execution_count": 2035,
839+
"execution_count": null,
840840
"id": "07eab1fd",
841841
"metadata": {},
842842
"outputs": [],
@@ -845,14 +845,14 @@
845845
"window_size = (-.250, .500) \n",
846846
"\n",
847847
"# Re-center timestamps for white stimuli\n",
848-
"# +50 because we substracted 500 ms at beginning of stimulus presentation\n",
848+
"# +50 because we subtracted 500 ms at beginning of stimulus presentation\n",
849849
"peri_white = nap.compute_perievent(timestamps = units,\n",
850850
" tref = nap.Ts(extended_flashes_white.start +.50), \n",
851851
" minmax = window_size\n",
852852
")\n",
853853
"\n",
854854
"# Re-center timestamps for black stimuli\n",
855-
"# +50 because we substracted 500 ms at beginning of stimulus presentation\n",
855+
"# +50 because we subtracted 500 ms at beginning of stimulus presentation\n",
856856
"peri_black = nap.compute_perievent(timestamps = units,\n",
857857
" tref = nap.Ts(extended_flashes_black.start +.50), \n",
858858
" minmax = window_size\n",
@@ -1178,7 +1178,7 @@
11781178
},
11791179
{
11801180
"cell_type": "code",
1181-
"execution_count": 2040,
1181+
"execution_count": null,
11821182
"id": "d12020f6",
11831183
"metadata": {
11841184
"tags": [
@@ -1197,7 +1197,7 @@
11971197
"\n",
11981198
" pre_presentation_avg :\n",
11991199
" Average firing rate prior (250 ms) to the presentation of stimulus\n",
1200-
" accross all instances prior of stimulus. \n",
1200+
" across all instances prior of stimulus. \n",
12011201
"\n",
12021202
" responsiveness : \n",
12031203
" abs((post_presentation_avg - pre_presentation_avg) / (post_presentation_avg + pre_presentation_avg))\n",
@@ -1230,11 +1230,11 @@
12301230
" # Get the firing rate\n",
12311231
" peri_rate = peri_counts/bin_size\n",
12321232
"\n",
1233-
" # Compute average firing rate for each milisecond in the\n",
1233+
" # Compute average firing rate for each millisecond in the\n",
12341234
" # the 250 ms before stimulus presentation\n",
12351235
" pre_presentation = np.mean(peri_rate,1).restrict(nap.IntervalSet([-.25,0]))\n",
12361236
"\n",
1237-
" # Compute average firing rate for each milisecond in the\n",
1237+
" # Compute average firing rate for each millisecond in the\n",
12381238
" # the 250 ms after stimulus presentation\n",
12391239
" post_presentation = np.mean(peri_rate,1).restrict(nap.IntervalSet([0,.25]))\n",
12401240
"\n",
@@ -1254,7 +1254,7 @@
12541254
},
12551255
{
12561256
"cell_type": "code",
1257-
"execution_count": 2041,
1257+
"execution_count": null,
12581258
"id": "cb82cfab",
12591259
"metadata": {},
12601260
"outputs": [
@@ -1287,7 +1287,7 @@
12871287
"responsiveness_white,_ = get_responsiveness(peri_white, bin_size)\n",
12881288
"responsiveness_black,_ = get_responsiveness(peri_black, bin_size)\n",
12891289
"\n",
1290-
"# Add resposiveness as metadata for units\n",
1290+
"# Add responsiveness as metadata for units\n",
12911291
"units.set_info(responsiveness_white=responsiveness_white)\n",
12921292
"units.set_info(responsiveness_black=responsiveness_black)\n",
12931293
"\n",
@@ -1646,7 +1646,7 @@
16461646
"metadata": {},
16471647
"source": [
16481648
"### Preparing the data for **NeMoS**\n",
1649-
"Now that we have a good understanding of our data, and that we have splitted our dataset in the corresponding test and train subsets, we are almost ready to run our model. However, before we can construct it, we need to get our data in the right format.\n",
1649+
"Now that we have a good understanding of our data, and that we have split our dataset in the corresponding test and train subsets, we are almost ready to run our model. However, before we can construct it, we need to get our data in the right format.\n",
16501650
"\n",
16511651
"When fitting a single neuron, **NeMoS** requires that the predictors and spike counts it operates on have the following properties:\n",
16521652
"\n",
@@ -2311,7 +2311,7 @@
23112311
":::{admonition} What is the ```predictor_causality``` parameter doing in the initialization of the ```RaisedCosineLinearConv``` basis?\n",
23122312
":class: info\n",
23132313
":class: dropdown\n",
2314-
"This manages the causality of the predictor: ```\"causal\"``` is the default setting, and it means that the convolution will occurr with respect to the input. Conversely ```\"acausal\"```, the one we are using now for the raised cosine linear basis, applies the convolution to both sides of the stimulus equally. For more information, please refer to [**NeMoS** notebook on causal, anti-causal and acausal filters](https://nemos.readthedocs.io/en/latest/background/plot_03_1D_convolution.html#causal-anti-causal-and-acausal-filters)\n",
2314+
"This manages the causality of the predictor: ```\"causal\"``` is the default setting, and it means that the convolution will occur with respect to the input. Conversely ```\"acausal\"```, the one we are using now for the raised cosine linear basis, applies the convolution to both sides of the stimulus equally. For more information, please refer to [**NeMoS** notebook on causal, anti-causal and acausal filters](https://nemos.readthedocs.io/en/latest/background/plot_03_1D_convolution.html#causal-anti-causal-and-acausal-filters)\n",
23152315
":::"
23162316
]
23172317
},
@@ -2975,7 +2975,7 @@
29752975
},
29762976
{
29772977
"cell_type": "code",
2978-
"execution_count": 2075,
2978+
"execution_count": null,
29792979
"id": "51db7e73",
29802980
"metadata": {},
29812981
"outputs": [
@@ -3006,14 +3006,14 @@
30063006
],
30073007
"source": [
30083008
"# Re-center timestamps around white stimuli\n",
3009-
"# +50 because we substracted .50 at beginning of stimulus presentation\n",
3009+
"# +50 because we subtracted .50 at beginning of stimulus presentation\n",
30103010
"peri_white_pred_unit = nap.compute_perievent_continuous(\n",
30113011
" timeseries = pred_unit, \n",
30123012
" tref = nap.Ts(flashes_test_white.start+.50),\n",
30133013
" minmax=window_size\n",
30143014
") \n",
30153015
"# Re-center timestamps for black stimuli\n",
3016-
"# +50 because we substracted .50 at beginning of stimulus presentation\n",
3016+
"# +50 because we subtracted .50 at beginning of stimulus presentation\n",
30173017
"peri_black_pred_unit = nap.compute_perievent_continuous(\n",
30183018
" timeseries = pred_unit, \n",
30193019
" tref = nap.Ts(flashes_test_black.start+.50), \n",
@@ -3485,7 +3485,7 @@
34853485
"We can try extending the model in order to improve its performance. There are many ways one can do this: the iterative refinement and improvement of your model is an important part of the scientific process! In this tutorial, we’ll discuss one such extension, but you’re encouraged to try others.\n",
34863486
"\n",
34873487
"Now, we'll extend the model by adding coupling terms—that is, including the activity of other neurons as predictors—to account for shared variability within the network. It's been shown by {cite:t}`pillowSpatiotemporalCorrelationsVisual2008` \n",
3488-
" <span id=\"cite1b\"></span><a href=\"#ref1\">[1b]</a> that spike times can be predicted more accurately when taking into acount the spiking of neighbouring units. "
3488+
" <span id=\"cite1b\"></span><a href=\"#ref1\">[1b]</a> that spike times can be predicted more accurately when taking into account the spiking of neighbouring units. "
34893489
]
34903490
},
34913491
{
@@ -4546,7 +4546,7 @@
45464546
"formats": "ipynb,md"
45474547
},
45484548
"kernelspec": {
4549-
"display_name": "databook",
4549+
"display_name": "Python 3",
45504550
"language": "python",
45514551
"name": "python3"
45524552
},
@@ -4560,7 +4560,7 @@
45604560
"name": "python",
45614561
"nbconvert_exporter": "python",
45624562
"pygments_lexer": "ipython3",
4563-
"version": "3.11.13"
4563+
"version": "3.10.11"
45644564
}
45654565
},
45664566
"nbformat": 4,

0 commit comments

Comments
 (0)