Skip to content

Commit

Permalink
Fixed random seed selection to use numpy (NeuralEnsemble#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdenker committed Aug 14, 2021
1 parent 00f0cd3 commit 3520ac2
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions doc/tutorials/spade.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
},
"outputs": [],
"source": [
"import numpy as np\n",
"import quantities as pq\n",
"import neo\n",
"import elephant\n",
"import viziphant\n",
"import random\n",
"random.seed(4542)"
"np.random.seed(4542)"
]
},
{
Expand Down Expand Up @@ -115,7 +115,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The output `patterns` of the method contains information on the found patterns. In this case, we retrieve the pattern we put into the data: a pattern involving the first 10 neurons (IDs 0 to 9), occuring 4 times."
"The output `patterns` of the method contains information on the found patterns. In this case, we retrieve the pattern we put into the data: a pattern involving the first 10 neurons (IDs 0 to 9), occuring 5 times."
]
},
{
Expand Down Expand Up @@ -149,6 +149,13 @@
"viziphant.spade.plot_patterns(spiketrains, patterns)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -236,4 +243,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
}
}

0 comments on commit 3520ac2

Please sign in to comment.