You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/tutorials/asset.ipynb
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@
35
35
},
36
36
"outputs": [],
37
37
"source": [
38
+
"import os\n",
38
39
"import matplotlib.pyplot as plt\n",
39
40
"import numpy as np\n",
40
41
"import quantities as pq\n",
@@ -248,7 +249,7 @@
248
249
"\n",
249
250
"The third step is postprocessing of the analytical probability matrix `pmat`, obtained from the previous step. Centered at each (i,j) entry of `pmat` matrix, we apply a diagonal kernel with shape `filter_shape` and select the top `nr_largest` probabilities of (i,j) neighborhood (defined by `filter_shape`), and compute the significance of these `nr_largest` joint neighbor probabilities. The resultant `jmat` matrix is a \"dilated\" version of `imat`.\n",
250
251
"\n",
251
-
"This step is most time consuming."
252
+
"This step is most time consuming. If you have PyCUDA or PyOpenCL installed, set `ELEPHANT_USE_CUDA` or `ELEPHANT_USE_OPENCL` environment flag to `1`."
252
253
]
253
254
},
254
255
{
@@ -270,7 +271,8 @@
270
271
}
271
272
],
272
273
"source": [
273
-
"# hint: try different filter_shapes, e.g. filter_shape=(7,3)\n",
274
+
"os.environ['ELEPHANT_USE_OPENCL'] = '0'\n",
275
+
"# try different filter_shapes, e.g. filter_shape=(7,3)\n",
0 commit comments