|
34 | 34 | },
|
35 | 35 | "outputs": [
|
36 | 36 | {
|
37 |
| - "name": "stderr", |
| 37 | + "name": "stdout", |
38 | 38 | "output_type": "stream",
|
39 | 39 | "text": [
|
40 |
| - "Using Theano backend.\n", |
41 |
| - "WARNING (theano.sandbox.cuda): The cuda backend is deprecated and will be removed in the next release (v0.10). Please switch to the gpuarray backend. You can get more information about how to switch at this URL:\n", |
42 |
| - " https://github.com/Theano/Theano/wiki/Converting-to-the-new-gpu-back-end%28gpuarray%29\n", |
43 | 40 | "\n",
|
44 |
| - "Using gpu device 0: GeForce GTX TITAN X (CNMeM is enabled with initial size: 40.0% of memory, cuDNN 5103)\n" |
| 41 | + "WARNING: statsmodels is not installed. You will be unable to use the Naive Bayes Decoder\n" |
| 42 | + ] |
| 43 | + }, |
| 44 | + { |
| 45 | + "name": "stderr", |
| 46 | + "output_type": "stream", |
| 47 | + "text": [ |
| 48 | + "Using Theano backend.\n" |
45 | 49 | ]
|
46 | 50 | }
|
47 | 51 | ],
|
|
58 | 62 | "# import deepdish as dd \n",
|
59 | 63 | "\n",
|
60 | 64 | "#Import function to get the covariate matrix that includes spike history from previous bins\n",
|
61 |
| - "from preprocessing_funcs import get_spikes_with_history\n", |
| 65 | + "from Neural_Decoding.preprocessing_funcs import get_spikes_with_history\n", |
62 | 66 | "\n",
|
63 | 67 | "#Import metrics\n",
|
64 |
| - "from metrics import get_R2\n", |
65 |
| - "from metrics import get_rho\n", |
| 68 | + "from Neural_Decoding.metrics import get_R2\n", |
| 69 | + "from Neural_Decoding.metrics import get_rho\n", |
66 | 70 | "\n",
|
67 | 71 | "#Import decoder functions\n",
|
68 |
| - "from decoders import WienerCascadeDecoder\n", |
69 |
| - "from decoders import WienerFilterDecoder\n", |
70 |
| - "from decoders import DenseNNDecoder\n", |
71 |
| - "from decoders import SimpleRNNDecoder\n", |
72 |
| - "from decoders import GRUDecoder\n", |
73 |
| - "from decoders import LSTMDecoder\n", |
74 |
| - "from decoders import XGBoostDecoder\n", |
75 |
| - "from decoders import SVRDecoder" |
| 72 | + "from Neural_Decoding.decoders import WienerCascadeDecoder\n", |
| 73 | + "from Neural_Decoding.decoders import WienerFilterDecoder\n", |
| 74 | + "from Neural_Decoding.decoders import DenseNNDecoder\n", |
| 75 | + "from Neural_Decoding.decoders import SimpleRNNDecoder\n", |
| 76 | + "from Neural_Decoding.decoders import GRUDecoder\n", |
| 77 | + "from Neural_Decoding.decoders import LSTMDecoder\n", |
| 78 | + "from Neural_Decoding.decoders import XGBoostDecoder\n", |
| 79 | + "from Neural_Decoding.decoders import SVRDecoder\n" |
76 | 80 | ]
|
77 | 81 | },
|
78 | 82 | {
|
|
105 | 109 | "# folder='/Users/jig289/Dropbox/Public/Decoding_Data/'\n",
|
106 | 110 | "\n",
|
107 | 111 | "with open(folder+'example_data_s1.pickle','rb') as f:\n",
|
108 |
| - "# neural_data,vels_binned=pickle.load(f,encoding='latin1') #If using python 3\n", |
109 |
| - " neural_data,vels_binned=pickle.load(f) #If using python 2\n", |
| 112 | + " neural_data,vels_binned=pickle.load(f,encoding='latin1') #If using python 3\n", |
| 113 | + "# neural_data,vels_binned=pickle.load(f) #If using python 2\n", |
110 | 114 | "\n",
|
111 | 115 | "# #If you would prefer to load the '.h5' example file rather than the '.pickle' example file.\n",
|
112 | 116 | "# data=dd.io.load(folder+'example_data_s1.h5')\n",
|
|
326 | 330 | "name": "stdout",
|
327 | 331 | "output_type": "stream",
|
328 | 332 | "text": [
|
329 |
| - "('R2s:', array([ 0.72457168, 0.71731407]))\n" |
| 333 | + "R2s: [0.72457168 0.71731407]\n" |
330 | 334 | ]
|
331 | 335 | }
|
332 | 336 | ],
|
|
710 | 714 | "metadata": {
|
711 | 715 | "anaconda-cloud": {},
|
712 | 716 | "kernelspec": {
|
713 |
| - "display_name": "Python 2", |
| 717 | + "display_name": "Python [py35]", |
714 | 718 | "language": "python",
|
715 |
| - "name": "python2" |
| 719 | + "name": "Python [py35]" |
716 | 720 | },
|
717 | 721 | "language_info": {
|
718 | 722 | "codemirror_mode": {
|
719 | 723 | "name": "ipython",
|
720 |
| - "version": 2 |
| 724 | + "version": 3 |
721 | 725 | },
|
722 | 726 | "file_extension": ".py",
|
723 | 727 | "mimetype": "text/x-python",
|
724 | 728 | "name": "python",
|
725 | 729 | "nbconvert_exporter": "python",
|
726 |
| - "pygments_lexer": "ipython2", |
727 |
| - "version": "2.7.12" |
| 730 | + "pygments_lexer": "ipython3", |
| 731 | + "version": "3.5.2" |
728 | 732 | }
|
729 | 733 | },
|
730 | 734 | "nbformat": 4,
|
|
0 commit comments