Dataset Viewer
Auto-converted to Parquet Duplicate
QuestionId
int64
388k
59.1M
AnswerCount
int64
0
47
Tags
stringlengths
7
102
CreationDate
stringlengths
23
23
AcceptedAnswerId
float64
388k
59.1M
OwnerUserId
float64
184
12.5M
Title
stringlengths
15
150
Body
stringlengths
12
29.3k
answers
listlengths
0
47
388,172
6
<python><lua><scipy><scientific-computing><torch>
2008-12-23T04:25:07.537
388,184
41,718
Scientific libraries for Lua?
<p>Are there any scientific packages for Lua comparable to Scipy?</p>
[ { "AnswerId": "9254474", "CreationDate": "2012-02-13T01:20:28.603", "ParentId": null, "OwnerUserId": "221509", "Title": null, "Body": "<p>I'm not sure if it is comparable to Scipy, but there is <a href=\"http://www.nongnu.org/gsl-shell/\" rel=\"nofollow\">GSL Shell</a> which is based on LuaJ...
11,987,325
4
<numpy><scipy><gfortran><theano>
2012-08-16T12:39:30.310
null
380,038
Theano fails due to NumPy Fortran mixup under Ubuntu
<p>I installed <a href="http://deeplearning.net/software/theano/" rel="noreferrer">Theano</a> on my machine, but the nosetests break with a Numpy/Fortran related error message. For me it looks like Numpy was compiled with a different Fortran version than Theano. I already reinstalled Theano ( + ) and Numpy / Scipy (), ...
[ { "AnswerId": "18241213", "CreationDate": "2013-08-14T20:03:51.183", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>A better fix is to remove atlas and install openblas. openblas is faster then atlas. Also, openblas don't request gfortran and is the one numpy was linke...
13,757,826
2
<numpy><pypy><theano>
2012-12-07T06:07:58.497
13,762,698
901,263
NumPyPy vs Theano?
<p>I am wondering: do these two projects basically have the same goal -- to speed up numerical work in Python?</p> <p>What are the similarities and differences?</p> <p>I know that Theano does not aim to re-implement all of NumPy like NumPyPy does, but from what I've read, Theano can already lead to some really impres...
[ { "AnswerId": "20026491", "CreationDate": "2013-11-17T02:34:11.297", "ParentId": null, "OwnerUserId": "179081", "Title": null, "Body": "<p>Theano, seeks to improve NumPy,\nNumPy is a prerequisite for Theano.</p>\n\n<p>A large feature of Theano, is it's transparent use of CUDA GPU's, when pos...
14,178,339
1
<python><machine-learning><theano>
2013-01-06T01:24:08.887
null
199,785
theano define function which repeatedly calls another function?
<p>My training function:</p> <pre class="lang-python prettyprint-override"></pre> <p>Then from elsewhere:</p> <pre class="lang-python prettyprint-override"></pre> <p>So what I'd like this to look like is</p> <pre class="lang-python prettyprint-override"></pre> <p>I'm really not even sure how to start on this, as ...
[ { "AnswerId": "16868431", "CreationDate": "2013-06-01T02:15:08.277", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>Everybody I know do the loop over minibatch in python. This can be done with scan, but all your tries here did not used scan. So it is normal that they d...
14,311,688
1
<python><warnings><theano>
2013-01-14T02:40:27.977
null
1,030,101
how to set the Theano flag warn.sum_div_dimshuffle_bug to False
<p>I am using the theano package to find the derivative of a sigmoid function, using the cross entropy as the cost. This is my code:</p> <pre></pre> <p>when I run my code, I get the following error:</p> <pre></pre> <p>But I dont know how to do that. I tried this:</p> <pre></pre> <p>but it is giving me an error on...
[ { "AnswerId": "14631722", "CreationDate": "2013-01-31T17:33:43.570", "ParentId": null, "OwnerUserId": "359944", "Title": null, "Body": "<p>Try </p>\n\n<pre><code>from theano import config\nconfig.warn.sum_div_dimshuffle_bug = False\n</code></pre>\n\n<p>This worked for me</p>\n" } ]
15,542,043
2
<python><g++><theano>
2013-03-21T07:51:40.970
15,542,158
2,193,800
Theano install warning: g++ not detected
<p>After I installed Theano I tried to run it but got following error message:</p> <pre></pre> <p>Why?</p>
[ { "AnswerId": "37846374", "CreationDate": "2016-06-15T21:48:49.483", "ParentId": null, "OwnerUserId": "2534758", "Title": null, "Body": "<p>You can try installing mingw (<a href=\"http://www.mingw.org/\" rel=\"nofollow noreferrer\">http://www.mingw.org/</a>) as mentioned in the answer posted...
15,917,849
2
<python><numpy><theano>
2013-04-10T05:42:09.473
null
2,168,406
How can I assign/update subset of tensor shared variable in Theano?
<p>When compiling a function in , a shared variable(say X) can be updated by specifying . Now I am trying to update only subset of a shared variable:</p> <pre></pre> <p>The codes will raise a error "update target must be a SharedVariable", I guess that means update targets can't be non-shared variables. So is there a...
[ { "AnswerId": "19216429", "CreationDate": "2013-10-07T02:56:48.000", "ParentId": null, "OwnerUserId": "1319683", "Title": null, "Body": "<p>Use <a href=\"http://deeplearning.net/software/theano/library/tensor/basic.html#theano.tensor.set_subtensor\" rel=\"noreferrer\">set_subtensor</a> or <a...
16,426,641
1
<python><theano>
2013-05-07T19:04:11.087
16,446,170
413,345
Disconnected Input in Gradient of Theano Scan Op
<p>I have a number of items in groups of varying size. For each of these groups, one (known) item is the "correct" one. There is a function which will assign a score to each of item. This results in a flat vector of item scores, as well as vectors telling the index where each group begins and how big it is. I wish to...
[ { "AnswerId": "16446170", "CreationDate": "2013-05-08T16:56:35.097", "ParentId": null, "OwnerUserId": "413345", "Title": null, "Body": "<p>This turns out to be a Theano bug as of mid-Feb. 2013 (0.6.0rc-2). It is fixed in the development version on github as of the date of this post.</p>\n" ...
16,512,803
1
<python><mingw><neural-network><theano>
2013-05-12T22:44:11.393
16,868,378
420,774
Compilation error when importing Theano on Windows 7
<p>I'm trying to use Theano on Windows 7. I was able to install Theano and import Theano, but after seeing the warning about not having a C compiler installed I also installed mingw. Now when I try "import theano" I get a compilation error. The message is rather long, but the relevant parts (from what I could tell) loo...
[ { "AnswerId": "16868378", "CreationDate": "2013-06-01T02:06:05.347", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>Installation on Windows isn't trivial. The simplest way is to use EPD(not the free version, it miss some depenency). Are you an academic? If so, it is fr...
16,528,804
1
<enthought><epd-python><theano>
2013-05-13T18:35:02.220
null
2,378,916
linking to python library using EPD Canopy
<p>Summary: I'm trying to install the theano python package, and the theano install can't find "-lpython2.7" in my EPD Canopy installation.</p> <p>More details: Recently I installed the Enthought EPD Canopy python distribution (64-bit academic) in OS X 10.6.8. Next I installed pip via "easy_install pip".</p> <p>Next...
[ { "AnswerId": "16926207", "CreationDate": "2013-06-04T19:45:34.950", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>Following @RobertKern@ information, it is now fixed in the development version of Theano.</p>\n\n<p>To update to the development version, do:</p>\n\n<pre...
16,641,014
2
<python><theano>
2013-05-20T00:37:34.880
16,641,107
2,276,326
Theano import error: cannot import name stacklists
<pre></pre> <p>this is my program. i am getting following error.can anybody help</p> <pre></pre>
[ { "AnswerId": "16641107", "CreationDate": "2013-05-20T00:51:03.093", "ParentId": null, "OwnerUserId": "1330293", "Title": null, "Body": "<p>You probably have an old version of Theano; <code>stacklist</code> was <a href=\"https://github.com/mrocklin/Theano/commit/8eefe5a0094e84d470865e42cc16e...
16,683,390
3
<python><theano>
2013-05-22T04:18:56.527
16,683,692
2,276,326
Python RuntimeError: Failed to import pydot
<p>I am learning concepts of logistic regression concepts. When i implement it in python, it shows me some error mentioned below. I am beginner in python. Could anybody help to rectify this error?</p> <p>RuntimeError Traceback (most recent call last) in ()</p> <pre></pre> <p>C:\Anaconda...
[ { "AnswerId": "39842355", "CreationDate": "2016-10-04T00:15:59.297", "ParentId": null, "OwnerUserId": "6901690", "Title": null, "Body": "<p>I got the same error and I did the following sequence to make it work, in a Python 3:</p>\n\n<pre><code>source activate anaconda\npip install pydot\npip...
16,738,937
1
<python><theano>
2013-05-24T15:49:47.633
16,782,594
380,038
Using Theano.scan with shared variables
<p>I want to calculate the <a href="http://office.microsoft.com/en-001/excel-help/sumproduct-HP005209293.aspx" rel="nofollow"></a> of two arrays in Theano. Both arrays are declared as shared variables and are the result of prior computations. Reading the <a href="http://deeplearning.net/software/theano/library/scan.htm...
[ { "AnswerId": "16782594", "CreationDate": "2013-05-28T01:33:56.643", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>You need to change the compilation line to this one:</p>\n\n<pre><code>Tsumprod = theano.function([], outputs=Tsumprod_result)\n</code></pre>\n\n<p>thean...
16,787,358
1
<python><theano>
2013-05-28T08:29:27.513
16,787,359
380,038
Theano TypeError: function() takes at least 1 argument (1 given)
<p>One of my Theano functions does not take any inputs and only uses shared variables to calculate the output. But this function throws a . </p> <p>Here a minimal example: </p> <pre></pre>
[ { "AnswerId": "16787359", "CreationDate": "2013-05-28T08:29:27.513", "ParentId": null, "OwnerUserId": "380038", "Title": null, "Body": "<p>From: <a href=\"https://stackoverflow.com/a/16782594/380038\">https://stackoverflow.com/a/16782594/380038</a></p>\n\n<p>\"<code>theano.function()</code> ...
16,810,371
1
<theano>
2013-05-29T09:36:14.473
16,815,974
380,038
Using Theano.scan with multidimensional arrays
<p>To speed up my code I am converting a multidimensional sumproduct function from Python to Theano. My Theano code reaches the same result, but only calculates the result for one dimension at a time, so that I have to use a Python for-loop to get the end result. I assume that would make the code slow, because Theano c...
[ { "AnswerId": "16815974", "CreationDate": "2013-05-29T14:00:42.667", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>First, there is more people that will answer your questions on theano mailing list then on stackoverflow. But I'm here:)</p>\n\n<p>First, your function i...
16,848,650
1
<python><numpy><theano>
2013-05-31T01:54:35.713
16,860,115
1,658,908
Theano: Why does indexing fail in this case?
<p>I'm trying to get the max of a vector given a boolean value.</p> <p>With Numpy:</p> <pre></pre> <p>But with Theano:</p> <pre></pre> <p>Why does this happen? Is this a subtle nuance that i'm missing?</p>
[ { "AnswerId": "16860115", "CreationDate": "2013-05-31T14:51:21.860", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>You are using a version of Theano that is too old. In fact, tensor_var.nonzero() isn't in any released version. You need to update to the development ver...
17,026,496
1
<python><numpy><theano>
2013-06-10T14:39:54.977
17,026,497
380,038
Theano shared variable update causes `ValueError: length not known`
<p>Minimal example code: </p> <pre></pre> <p>Error message:</p> <pre></pre> <p>What is the cause of this error?</p>
[ { "AnswerId": "17026497", "CreationDate": "2013-06-10T14:39:54.977", "ParentId": null, "OwnerUserId": "380038", "Title": null, "Body": "<p><code>Updates</code> must contain <code>a list of pairs</code>. See official tutorial on <a href=\"http://deeplearning.net/software/theano/tutorial/examp...
17,039,908
2
<theano>
2013-06-11T08:45:59.827
null
380,038
How to reuse Theano function with different shared variables without rebuilding graph?
<p>I have a Theano function that is called several times, each time with different shared variables. The way it is implemented now, the Theano function gets redefined every time it is run. I assume, that this make the whole program slow, because every time the Theano functions gets defined the graph is rebuild.</p> <p...
[ { "AnswerId": "17296524", "CreationDate": "2013-06-25T11:49:33.330", "ParentId": null, "OwnerUserId": "857617", "Title": null, "Body": "<p>You can use the givens keyword in theano.function for that. Basically, you do the following.</p>\n\n<pre class=\"lang-py prettyprint-override\"><code>m1 ...
17,125,845
4
<python-2.7><enthought><win64><theano>
2013-06-15T16:48:56.567
null
1,961,354
Installing Theano on EPD (Windows x64), g++ not detected
<p>I am trying to run theano on Enthought Python Distribution (academic license) under windows 7 64. Followin the topic <a href="https://stackoverflow.com/questions/10270871/installing-theano-on-epd-windows-x64">Installing Theano on EPD (Windows x64)</a> I installed bleeding edge version of theano since I got the same ...
[ { "AnswerId": "17134799", "CreationDate": "2013-06-16T15:24:24.933", "ParentId": null, "OwnerUserId": "1961354", "Title": null, "Body": "<p>I solved this problem by adding Visual C++ Compilers feature to my current VS2010 installtion.\nNow I can import theano and console shows that I use gpu...
17,323,040
3
<python><theano>
2013-06-26T14:33:11.717
17,358,567
1,323,010
What is the prupose/meaning of passing "input" to a function in Theano?
<p>Example will make that clearer I hope, (This is a Logistic Regression object, the Theano Tensor library is imported as T)</p> <pre></pre> <p>Which is called down in main...</p> <pre></pre> <p>If these snippits aren't enough to get an understanding, the code is on this page under "Putting it All Together"- <a hre...
[ { "AnswerId": "17323199", "CreationDate": "2013-06-26T14:39:56.270", "ParentId": null, "OwnerUserId": "64250", "Title": null, "Body": "<p>This is a Python feature called <a href=\"http://www.diveintopython.net/power_of_introspection/optional_arguments.html\" rel=\"nofollow\">named parameters...
17,426,742
2
<python><numpy><scipy><sparse-matrix><theano>
2013-07-02T13:20:51.677
null
2,542,699
How to calculate (1 - SparseMatrix) of a huge sparse matrix?
<p>I researched a lot on this but couldn't find a practical solution to this problem. I am using scipy to create csr sparse matrix and want to substract this matrix from an equivalent matrix of all ones. In scipy and numpy notations, if matrix is not sparse, we can do so by simply writing 1 - MatrixVariable. However, t...
[ { "AnswerId": "17426874", "CreationDate": "2013-07-02T13:26:35.310", "ParentId": null, "OwnerUserId": "832621", "Title": null, "Body": "<p>You can access the data from your sparse matrix as a <code>1D array</code> so that:</p>\n\n<pre><code>ss.data *= -1\nss.data += 1\n</code></pre>\n\n<p>wi...
17,445,280
4
<python><debugging><theano>
2013-07-03T10:13:41.920
17,453,598
869,402
theano - print value of TensorVariable
<p><strong>How can I print the numerical value of a theano TensorVariable?</strong> I'm new to theano, so please be patient :)</p> <p>I have a function where I get as a parameter. Now I want to debug-print the shape of this to the console. Using</p> <pre></pre> <p>results in the console output (i was expecting num...
[ { "AnswerId": "38538089", "CreationDate": "2016-07-23T04:12:09.713", "ParentId": null, "OwnerUserId": "615130", "Title": null, "Body": "<p>print Value of a Tensor Variable.</p>\n\n<p>Do the following:</p>\n\n<p><code>print tensor[dimension].eval()</code> # this will print the content/value a...
17,641,566
1
<python><eclipse><pydev><theano><mnist>
2013-07-14T17:00:30.507
17,641,624
1,908,423
PyDev can't find machine learning data
<p>I have a problem I hoped someone would be able to help me with regarding the tutorial at <a href="http://deeplearning.net/tutorial/gettingstarted.html#gettingstarted" rel="nofollow">http://deeplearning.net/tutorial/gettingstarted.html#gettingstarted</a></p> <p>I keep receiving an error when I try to run the code to...
[ { "AnswerId": "17641624", "CreationDate": "2013-07-14T17:07:12.220", "ParentId": null, "OwnerUserId": "506544", "Title": null, "Body": "<p>The file mnist.pkl.gz is probably not in the same directory as the script that you are trying to run.</p>\n\n<p>You would be better off receiving the act...
17,678,905
1
<c++><tensorflow><ros><ofstream>
2013-07-16T14:12:00.800
17,679,464
1,569,693
writing a tf::transform object to a file
<p>I'm attempting to do something resembling the following block of code:</p> <pre></pre> <p>Assuming that I've properly set up that and when I'm trying to write to , how would I do so? I tried a number of variants of this, and all of them result in a huge wall of text to the effect that doesn't know how to handl...
[ { "AnswerId": "17679464", "CreationDate": "2013-07-16T14:35:20.347", "ParentId": null, "OwnerUserId": "1648011", "Title": null, "Body": "<p>Implement the operator<br>\nI'm not sure of the contents of the transform struct in this case, but assuming it is:</p>\n\n<pre><code>struct transform { ...
17,857,737
1
<python><numpy><atlas><theano>
2013-07-25T12:14:23.193
null
2,491,687
Running Python code for theano: /usr/bin/ld: cannot find -latlas
<p>I am trying to run theano on ubuntu which requires .</p> <p>I have already installed libatlas but I can find it in </p> <p>I have also copied all of the files to a new folder called :</p> <pre></pre> <p>But still, when I run the python code I see:</p> <pre></pre> <p>I also tried adding to environment variables...
[ { "AnswerId": "17859308", "CreationDate": "2013-07-25T13:23:44.903", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>To change how Theano link to BLAS, you need to use Theano flags[1]. They can be set with an environment variable THEANO_FLAGS or with a configuration fil...
18,006,270
1
<python><function><theano>
2013-08-01T23:22:13.783
null
2,491,687
Function declaration in Python
<p>I am using Theano in Python. I have the following code:</p> <pre></pre> <p>I cannot find any declaration of the function, while I can only find a piece of code before the previous one as:</p> <pre></pre> <p>I can find the declaration of but the two functions ( and ) do not have the same signature (input param...
[ { "AnswerId": "18006380", "CreationDate": "2013-08-01T23:32:20.517", "ParentId": null, "OwnerUserId": "1053992", "Title": null, "Body": "<p>Mostly when name starts with uppercase letter then it is class name (unless it is completely upper cased, then it mostly means constant). There is no <c...
18,165,131
2
<eclipse><gpu><pydev><theano>
2013-08-10T18:32:54.210
null
1,908,423
Getting Theano to use the GPU
<p>I am having quite a bit of trouble setting up Theano to work with my graphics card - I hope you guys can give me a hand.</p> <p>I have used CUDA before and it is properly installed as would be necessary to run Nvidia Nsight. However, I now want to use it with PyDev and am having several problems following the 'Usin...
[ { "AnswerId": "18189699", "CreationDate": "2013-08-12T14:32:25.263", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p><code>THEANO_FLAGS</code> is an environment variable and .theanorc is a configuration file. You can use both mechanism to configure Theano. This is descr...
18,174,876
1
<python><scipy><theano>
2013-08-11T17:49:07.123
null
2,491,687
how to find elements and dimentions of theano csr_matrix?
<ul> <li>What is the difference between theano.sparse and scipy.sparse?</li> <li>How can I find the dimensions and elements of a scipy.sparse.csr_matrix()?</li> </ul>
[ { "AnswerId": "18189847", "CreationDate": "2013-08-12T14:38:05.080", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>theano.sparse.csr_matrix is a symbolic variable. It don't contain any data. So if you access its .shape and .data, you also obtain a symbolic variable.</...
19,489,259
2
<python-2.7><machine-learning><computer-vision><theano><mnist>
2013-10-21T08:13:19.543
null
667,127
Accessing Data of a Theano Shared Variable
<p>I'v successfully loaded the MNIST dataset into Theano shared variables as follows</p> <pre></pre> <p>My question is how do I access the data in both train_set_x and train_set_y. Each image in the data set is 28 * 28 pixels. That is a vector of length 784 with all elements in the vector as floats representing value...
[ { "AnswerId": "19515782", "CreationDate": "2013-10-22T10:50:24.620", "ParentId": null, "OwnerUserId": "667127", "Title": null, "Body": "<p>@Nouiz has pointed out the right way to show the values of both train_set_x and train_set_y. The problem was related to the environment variable \"DYLD_F...
19,581,711
1
<theano><pymc>
2013-10-25T05:23:32.727
19,644,730
2,918,385
Assembling univariate priors into a matrix for use in MvNormal
<p>When using pymc 3 , is it possible to assemble univariate random variables into a matrix which is then used as a prior for a multivariate distribution? If so, how can I best go about this?</p> <p>Here is a specific example. I would like to take three R.V.'s and create a triangle matrix, A, with them:</p> <pre></pr...
[ { "AnswerId": "19644730", "CreationDate": "2013-10-28T20:43:04.490", "ParentId": null, "OwnerUserId": "359944", "Title": null, "Body": "<p>Looks like <a href=\"http://deeplearning.net/software/theano/library/tensor/basic.html#tensor.stacklists\" rel=\"nofollow\"><code>stacklist</code></a> mi...
19,720,332
2
<pymc><theano>
2013-11-01T03:30:17.457
null
1,502,840
How to build a model requiring external package in PyMC3?
<p>I'm not sure if this is a PyMC3 question or a Theano question. I've used PyMC2 for a long time to fit a cosmology to supernova data. This requires some messy integrals (see i.e. <a href="http://arxiv.org/abs/astroph/9905116" rel="nofollow noreferrer">http://arxiv.org/abs/astroph/9905116</a> )</p> <p>So I use a pack...
[ { "AnswerId": "24258828", "CreationDate": "2014-06-17T08:13:07.617", "ParentId": null, "OwnerUserId": "3609835", "Title": null, "Body": "<p>I think one possible solution would be to write a custom Theano Op following the instructions at <a href=\"http://deeplearning.net/software/theano/exten...
19,798,958
1
<python><pymc><theano>
2013-11-05T21:06:17.270
19,868,858
2,918,385
Supplying test values in pymc 3
<p>I am exploring the use of bounded distributions in pymc. I am trying to bound a Gamma prior distribution between two values. The model specification seems to fail due to the absence of test values. How may I pass a testval argument such that I am able to specify these sorts of models?</p> <p>For completeness I have...
[ { "AnswerId": "19868858", "CreationDate": "2013-11-08T21:31:53.353", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>Use that line:</p>\n\n<pre><code>xbound = BoundedGamma('xbound', alpha=1, beta=2, testval=1)\n</code></pre>\n" } ]
20,135,786
1
<theano>
2013-11-22T02:18:51.443
null
550,879
Can I avoid using `Theano.scan`?
<p>I have 3-dimensional tensor ( -- an array of matrices), and I'd like to compute the determinant () of each matrix. Is there a way to compute each determinant without using ? When I try calling directly on the tensor I get the error</p> <pre></pre> <p>But I read that is slow and doesn't parallelize well, and that...
[ { "AnswerId": "20149947", "CreationDate": "2013-11-22T16:38:10.997", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>I see 3 possibilities:</p>\n\n<ul>\n<li>If you know before compiling the Theano function the number of matrix in the tensor3 variable, you could use the ...
20,235,070
2
<python><numpy><theano>
2013-11-27T06:04:31.567
20,235,613
179,081
Theano element wise maximum
<p>I'm trying to find find the value of element-wise on a matrix in theano. I don't have much experience with theano.</p> <p>So far I have</p> <pre></pre> <p>This works, but isn't pretty and I thought I should be able to use for this.</p> <p>In matlab, to do what I want to do, I would just write </p>
[ { "AnswerId": "20235613", "CreationDate": "2013-11-27T06:41:09.193", "ParentId": null, "OwnerUserId": "2015778", "Title": null, "Body": "<p>This works for me:</p>\n\n<pre><code>import theano.tensor as T\nfrom theano import function\n\nx = T.dmatrix('x')\nlinmax = function([x], T.maximum(x,0)...
20,237,812
1
<python><function><operation><theano>
2013-11-27T08:59:28.013
20,244,704
179,081
What is the difference between a Op and a Function
<p>Theano has Ops and functions.<br> <strong>What is the difference?</strong></p> <p>Functions seem nice and easy to define, eg: </p> <pre></pre> <p>Ops seem complex to define. All abstract classes and such but things like and are defined as Ops. I'm not to sure on the difference.</p> <p>How would I write the abo...
[ { "AnswerId": "20244704", "CreationDate": "2013-11-27T14:11:09.900", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>theano.function() return a python object that is callable. So you can use it do the the computation you described when it was called.</p>\n\n<p>Theano Op...
20,284,663
2
<python><theano>
2013-11-29T11:25:19.870
20,285,275
522,000
Can somebody help explain a line of code in an example of Theano tutorial?
<p>In the <a href="http://deeplearning.net/tutorial/logreg.html" rel="nofollow">logistic regression example</a> provided in the Theano tutorial, there is one line of code in the function as below:</p> <pre></pre> <p>Can someone help explain what exactly the use of square bracket in the last line of the above code? H...
[ { "AnswerId": "20285275", "CreationDate": "2013-11-29T11:56:41.720", "ParentId": null, "OwnerUserId": "1398797", "Title": null, "Body": "<p>You have most of the information you need in the comments of the function.</p>\n\n<p><code>T.log(self.p_y_give_x)</code> returns a numpy matrix.</p>\n\n...
20,376,435
1
<python><tensorflow><neural-network><keras><autoencoder>
2013-12-04T13:17:32.023
null
2,873,565
Auto-encoder to reduce input data size
<p>Currently, I want to use the autoencoder for reducing the input data size in order to use the reduced data for another neural networks. My task is to take a video and then give the images of the video to the autoencoder. When I use only a few images as input, the autoencoder works well but when I want to have a sequ...
[ { "AnswerId": "53204813", "CreationDate": "2018-11-08T09:27:55.523", "ParentId": null, "OwnerUserId": "5108062", "Title": null, "Body": "<p>Autoencoders/Variational Autoencoders does not learn about sequences, it learns to \"map\" the input data to a latent space which has fewer dimensions. ...
20,415,867
1
<generics><printing><types><probability><theano>
2013-12-06T04:16:58.417
null
2,514,749
Theano printing probabilities for test-set samples
<p>in DL tutorials I'm trying to print the probability of the test samples according to <a href="https://stackoverflow.com/questions/17323040/what-is-the-prupose-meaning-of-passing-input-to-a-function-in-theano">What is the prupose/meaning of passing &quot;input&quot; to a function in Theano?</a> but I get the follow...
[ { "AnswerId": "20481585", "CreationDate": "2013-12-09T21:52:39.857", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>There is an error in your code when you create values. test_set_x.get_value is a python function. So it should be test_set_x.get_value() as you want the ...
20,530,874
1
<python><theano>
2013-12-11T22:03:44.663
null
648,896
Finding closest point with Theano
<p>among a set of weight vector how could I find the closest to a given instance vector in optimize theano way. Or do I need to use numpy?</p>
[ { "AnswerId": "20570978", "CreationDate": "2013-12-13T16:13:28.727", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>This question was answered on Theano mailing list:</p>\n\n<p><a href=\"https://groups.google.com/forum/#!topic/theano-users/J-l9UmpSG2Y\" rel=\"nofollow\...
20,590,909
1
<python><theano>
2013-12-15T03:32:05.730
20,602,231
429,726
Returning the index of a value in Theano vector
<p>What is the procedure in Theano for returning the index of a particular value in a Vector? In NumPy, this would be . Theano's is a switch statement.</p>
[ { "AnswerId": "20602231", "CreationDate": "2013-12-16T01:46:20.903", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>There is 2 behavior of numpy.where(condition, [x ,y]). Theano always support you provide 3 parameter to where(). As said in NumPy doc[1], numpy.where(con...
21,112,016
1
<c++><python-2.7><theano>
2014-01-14T11:07:55.593
21,121,992
2,546,106
Reusing compiled Theano functions
<p>Suppose I have implemented the following function in Theano:</p> <pre></pre> <p>When I try to run it a graph of computations is constructed, the function gets optimized and compiled. </p> <p>How can I reuse this compiled chunk of code from within a Python script and/or a C++ application?</p> <p><strong>EDIT:</st...
[ { "AnswerId": "21121992", "CreationDate": "2014-01-14T19:14:33.227", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>Currently this isn't possible. There is user that modified Theano to allow pickling the Theano function, but during unpickling we already re optimize the...
21,290,373
2
<python><numpy><theano>
2014-01-22T17:55:41.377
21,323,254
899,275
Theano integration with already existing python code
<p>I have a simple question, for which I expected to already have found an easy answer online, but I did not.</p> <p>I have a python project that works a lot with numpy, due to matrix operations. I wanted to speed the code up, so I did some profiling to find out the right tool for the job. Turns out the overhead is no...
[ { "AnswerId": "21320362", "CreationDate": "2014-01-23T22:08:51.633", "ParentId": null, "OwnerUserId": "425797", "Title": null, "Body": "<p>If you have code running in Numpy, translating it to Theano is not going to make it magically faster, and it's going to take a significant coding effort....
21,342,931
3
<python><theano>
2014-01-24T21:36:38.557
21,345,831
217,802
Error importing Theano
<p>After installing python, numpy, scipy and theano to ~/.local, I tried to import theano but it threw an error:</p> <pre></pre> <p>I'm installing on a Red Hat box:</p> <pre></pre> <p>What should I do...?</p>
[ { "AnswerId": "54492982", "CreationDate": "2019-02-02T12:13:35.980", "ParentId": null, "OwnerUserId": "1744914", "Title": null, "Body": "<p>In case you are using <a href=\"https://github.com/pyenv/pyenv\" rel=\"nofollow noreferrer\">pyenv</a> you can do that with</p>\n\n<pre><code>CONFIGURE_...
21,474,782
1
<machine-learning><neural-network><theano>
2014-01-31T07:37:33.620
21,483,126
3,256,363
How can we see the transformed vaue z, in autoencoder link: http://deeplearning.net/tutorial/dA.html
<p>How can we see the z value , which is the reconstruction of x (dataset )</p> <p>Please see the link : <a href="http://deeplearning.net/tutorial/dA.html" rel="nofollow">http://deeplearning.net/tutorial/dA.html</a></p>
[ { "AnswerId": "21483126", "CreationDate": "2014-01-31T15:01:28.823", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>The function \"get_reconstructed_input\" will return a Theano variable that represent z from the hidden representation. Check the function \"get_cost_upd...
21,608,025
5
<theano>
2014-02-06T16:07:51.887
21,703,319
1,724,926
How to set up theano config
<p>I'm new to Theano. Trying to set up a config file.</p> <p>First of all, I notice that I have no .theanorc file:</p> <ol> <li> - returns nothing</li> <li> - returns nothing</li> <li> - passes ok</li> </ol> <p>I'm guessing some default configuration was created wen i installed theano. Where is it?</p>
[ { "AnswerId": "21703319", "CreationDate": "2014-02-11T13:32:15.160", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>Theano does not create any configuration file by itself, but has default values for all its configuration flags. You only need such a file if you want to...
21,644,214
1
<python><theano>
2014-02-08T09:19:04.863
null
1,953,384
IPython module import error: /usr/bin/ld: cannot find -lpython2.7. collect2: ld returned 1 exit status
<p>I'm using the Python module <a href="https://github.com/Theano/" rel="nofollow">Theano</a> on a server. It is not pre-installed on there so I installed it in my home folder along with some other modules that weren't on the server. I get the following error when I "import theano" in IPython.</p> <pre></pre> <p>How ...
[ { "AnswerId": "21703090", "CreationDate": "2014-02-11T13:23:03.837", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>Your python installation is incomplete. When you do:</p>\n\n<pre><code>module load libs/python/2.7.3\n</code></pre>\n\n<p>information is added to your en...
21,713,148
1
<python><macos><pymc><theano><psycopg>
2014-02-11T21:13:55.817
21,714,067
283,296
psycopg2, pymc, theano and DYLD_FALLBACK_LIBRARY_PATH
<p>I am unable to use along with . The following simple snippet from the tutorial:</p> <pre></pre> <p>results in the following error:</p> <blockquote> <p>Exception: The environment variable 'DYLD_FALLBACK_LIBRARY_PATH' does not contain the '/Users/josh/anaconda/envs/py27/lib' path in its value. This will make...
[ { "AnswerId": "21714067", "CreationDate": "2014-02-11T22:04:06.240", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>The development version of Theano don't need changes to DYLD_FALLBACK_LIBRARY_PATH. So undo the change to it and update your Theano version. From:</p>\n\...
21,945,079
0
<python><machine-learning><theano>
2014-02-21T21:01:12.113
null
742,616
Theano maximum likelihood for geometric brownian motion
<p>I'm trying to do maximum likelihood estimation (MLE) for a geometric brownian motion with Theano. I know, Theano is primarily a ML library, but it <em>should</em> work... (of course I'm just trying out Theano and my eventual goal is to do MLE for a slightly more complicated model....)</p> <p>Writing math at SO is a...
[]
22,036,710
3
<theano><word2vec><deep-learning>
2014-02-26T09:15:35.600
34,802,772
956,730
How to compute a language model with word2vec tool?
<p>I'm trying to build a neural network language model and it seems that word2vec tool by Mikolov et al is a good tool for this purpose. I tried that but it just produces word representations. Does anybody know how i can produce a language model by that tool or any other reasonable deep learning framework?</p>
[ { "AnswerId": "26458679", "CreationDate": "2014-10-20T04:42:00.403", "ParentId": null, "OwnerUserId": "2440487", "Title": null, "Body": "<p>Microsoft Research has released a toolkit for language modelling with word2vec-style vectors. You can find it <a href=\"http://research.microsoft.com/en...
22,350,482
1
<python><python-2.7><theano>
2014-03-12T11:44:59.643
22,352,914
888,849
Theano installation in Windows 32bit
<p>I am trying to install Theano library on a windows 32-bit machine. I've already installed python 2.7, numpy, scipy, mingw. The next dependency is blas. How can I install it on Windows? I've also installed canopy in order to install pip. The next steps are to install Theano with:</p> <pre></pre> <p>Am I missing a...
[ { "AnswerId": "22352914", "CreationDate": "2014-03-12T13:23:40.827", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>How did you install numpy/scipy/mingw? I think they are installed by default with canopy. As you tried many things, I would suggest that you remove all o...
22,527,072
1
<python><neural-network><backpropagation><theano><deep-learning>
2014-03-20T08:15:29.947
24,844,120
2,489,122
Multilayer perceptron with target variable as array instead of a single value
<p>I am new to deep learning and I have been trying to use the theano library to train my data. <a href="http://deeplearning.net/tutorial/mlp.html" rel="nofollow">MLP tutorial</a> here has a scalar output value while my use case has an array with a 1 corresponding to the value depicted in the output.</p> <p>For exampl...
[ { "AnswerId": "24844120", "CreationDate": "2014-07-19T19:23:07.013", "ParentId": null, "OwnerUserId": "1714410", "Title": null, "Body": "<p>You need to define <code>y</code> as <code>T.imatrix()</code> instead of <code>T.lvector()</code>.</p>\n" } ]
22,579,246
1
<python><theano>
2014-03-22T15:00:41.380
22,612,374
826,983
Theano: Get matrix dimension and value of matrix (SharedVariable)
<p>I would like to know how to retrieve the dimension of a SharedVariable from theano.</p> <p>This here e.g. does not work:</p> <pre></pre> <p>and only returns</p> <pre></pre> <p>I am also interested in printing/retriving the values of a matrix or vector ..</p>
[ { "AnswerId": "22612374", "CreationDate": "2014-03-24T14:33:38.670", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>You can get the value of a shared variable like this:</p>\n\n<pre><code>w.get_value()\n</code></pre>\n\n<p>Then this would work:</p>\n\n<pre><code>w.get_...
22,591,812
1
<python><performance><optimization><parallel-processing><theano>
2014-03-23T13:55:33.583
22,787,775
826,983
Parallelize iterative calculation using Theano
<p>This is a piece of python code that basically just calculates the activations of a neural network and then updates the new state for the next input value with respect to an arbitrary leaking rate .</p> <pre></pre> <p>It is not that important to understand what this is exactly doing. My question is: Can I parallel...
[ { "AnswerId": "22787775", "CreationDate": "2014-04-01T13:43:32.170", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>This ticket was closed as off-topick, so I answered it in the comment. So here my answer as a post.</p>\n\n<p>My answer is generic and apply to all syste...
22,613,364
2
<sentiment-analysis><text-classification><theano><deep-learning>
2014-03-24T15:15:03.183
22,682,341
956,730
Theano Classification Task always gives 50% validation error and test error?
<p>I am doing a text classification experiment with Theano's DBN (Deep Belief Network) and SDA (Stacked Denoising Autoencoder) examples. I have produced a feature/label dataset just as Theano's MINST dataset is produced and changed the feature length and output values of those examples to adopt to my dataset (2 outputs...
[ { "AnswerId": "33166614", "CreationDate": "2015-10-16T09:13:11.607", "ParentId": null, "OwnerUserId": "5453108", "Title": null, "Body": "<p>I had same problem. I think this problem is because of Overshooting.\nSo I decreased learning rate 0.1 to 0.013 and increase epoch.\nThen it works. \nBu...
22,675,274
2
<python><eclipse><macos><machine-learning><theano>
2014-03-26T23:31:32.547
22,793,080
1,568,741
Python won't find variable in module
<p>I just started playing around with Theano but have a strange problem in Eclipse. I am trying to import the config module to run some example code. The import works fine and I can see what's in the module.</p> <p>Here is the simple code I am trying:</p> <pre></pre> <p>This works fine and I get an output like:</p> ...
[ { "AnswerId": "22701190", "CreationDate": "2014-03-27T23:16:05.883", "ParentId": null, "OwnerUserId": "2317533", "Title": null, "Body": "<p>Is Eclipse using the same version of python as what you are running in the shell (console)? Does Eclipse know where to find theano- does it have a PYTHO...
22,735,082
1
<python><serialization><memory-management><theano>
2014-03-29T18:28:40.250
22,774,654
1,323,010
Python Memory Error with Python pkl files
<p>I'm using a python library for deep learning and neural networks. The computer i'm running on has 16 gb of ram@1866 MHz. At first my input data file was too large, so I broke it smaller:</p> <p></p> <p>caused:</p> <p></p> <p>Since the file was just an numpy array of numpy arrays, I could break it into seperate f...
[ { "AnswerId": "22774654", "CreationDate": "2014-04-01T00:27:01.520", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>First, pkl aren't great to save binary data and aren't memory friendly. It must copy all the data in ram before writing to disk. So this double the memor...
22,799,362
1
<pymc><theano><pymc3>
2014-04-02T00:22:38.377
22,803,664
3,297,752
Deterministic variables and a Fortran Scipy function in PyMC 3
<p>I am trying to build a simple PyMC 3 model in which I estimate two cut points and a correlation parameter in a latent bivariate Gaussian density, producing four predicted probabilities for a vector of (multinomial) counts. (This will, I hope, eventually be part of a larger model in which these and other parameters a...
[ { "AnswerId": "22803664", "CreationDate": "2014-04-02T06:54:31.207", "ParentId": null, "OwnerUserId": "359944", "Title": null, "Body": "<p>This will be somewhat easier in PyMC 2.3, so installing 2.3 is a pretty good option.</p>\n\n<p>In PyMC 3 that doesn't work because cx, cy, and rho are th...
22,860,717
1
<python><entropy><theano>
2014-04-04T10:50:43.743
31,435,097
862,629
Entropy and Probability in Theano
<p>I have a written a simple python code to calculate the entropy of a set and I am trying to write the same thing in Theano.</p> <pre></pre> <p>I am trying to write the equivalent code in Theno, but I am not sure how to do it:</p> <pre></pre> <p>However, the scan line is not correct and I get tons of errors. I am ...
[ { "AnswerId": "31435097", "CreationDate": "2015-07-15T15:46:09.383", "ParentId": null, "OwnerUserId": "5116849", "Title": null, "Body": "<p>Other than the point raised by nouiz, P should not be declared as a T.vector because it will be the result of computation on your vector of values.</p>\...
22,883,149
1
<python><numpy><theano>
2014-04-05T15:54:55.013
22,883,792
826,983
Can I configure Theano's x divided by 0 behavior
<p>I have a little problem using Theano. It seems that a results in not as using e.g. Numpy this results in 0 (at least the inverse function do behave like that). Take a look:</p> <pre></pre> <p>Results:</p> <pre></pre> <p>This is a problem for some of my calculations I want to perform in my GPU and I don't want ...
[ { "AnswerId": "22883792", "CreationDate": "2014-04-05T16:48:54.983", "ParentId": null, "OwnerUserId": "102441", "Title": null, "Body": "<p><code>theano.tensor</code> calculates the <em>elementwise</em> inverse</p>\n\n<p><code>np.linalg.inv</code> calculates the inverse <em>matrix</em></p>\n\...
22,914,786
3
<python><numpy><neural-network><theano>
2014-04-07T14:06:03.850
22,930,872
643,014
Error because of Theano and NumPy variable types
<p>I am writing this code using numpy 1.9 and the latest version of Theano but I get an error which I can't fix. I doubt it could be the way I declare variable types but I can't work it around. I appreciate your suggestions. I want to product a matrix with a vector and sum it with a bias. </p> <pre></pre> <p>I get th...
[ { "AnswerId": "27993778", "CreationDate": "2015-01-16T22:25:59.767", "ParentId": null, "OwnerUserId": "1639345", "Title": null, "Body": "<p>I had a similar error and was able to resolve it by adding a <code>.theanorc</code> file containing the following two lines:</p>\n\n<pre><code>[global]\...
23,314,351
1
<python><scipy><theano>
2014-04-26T17:30:52.767
23,314,906
283,296
What exactly is a tensor in theano?
<p>What exactly is a <strong>Tensor</strong> in <a href="http://www.deeplearning.net/software/theano/index.html#">Theano</a>, and what is the precise connection with <a href="http://en.wikipedia.org/wiki/Tensor#Definition">Tensors</a> as they are typically understood in Physics or Math?</p> <p>I went through the <a hr...
[ { "AnswerId": "23314906", "CreationDate": "2014-04-26T18:26:33.160", "ParentId": null, "OwnerUserId": "773960", "Title": null, "Body": "<p>There is a good breakdown of different physics/math ways to think of tensor in Jim Belk's <a href=\"https://math.stackexchange.com/a/192441\">answer</a> ...
23,634,582
1
<python><numpy><theano>
2014-05-13T14:48:14.470
null
3,627,108
What's the difference between the shapes of variable in Theano
<p>Could you tell me what's the difference with the shapes 0, (?,), (1,?), (?,?) in Theano? Why the array I defined as</p> <pre></pre> <p>is an array of (3,) ? How could I defined an array of (3,1) ? </p> <p>Besides, I write the code as below:</p> <pre></pre> <p>Why it report error:</p> <pre></pre> <p>Thank you ...
[ { "AnswerId": "23635590", "CreationDate": "2014-05-13T15:33:08.417", "ParentId": null, "OwnerUserId": "1461210", "Title": null, "Body": "<p>You are trying to pass <code>a.z</code> to <code>a.ac()</code>, whereas <code>a.z</code> is actually the <em>result</em> of <code>a.ac(x)</code>!</p>\n\...
23,643,850
2
<python><numpy><theano>
2014-05-14T00:41:46.220
null
3,633,343
How to swich theano.tensor to numpy.array?
<p>I have simple codes as shown below:</p> <pre></pre> <p>However, I get the following error information:</p> <pre></pre> <p>Furthermore, when I use the function of theano.tensor, it seems that what it returns is called "tensor", and I can't simply switch it to the type numpy.array, even though what the result shou...
[ { "AnswerId": "23660792", "CreationDate": "2014-05-14T16:58:56.603", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>Theano \"tensor\" variable are symbolic variable. What you build with them are like a programme that you write. You need to compile a Theano function to ...
23,656,777
1
<python><theano>
2014-05-14T13:57:07.707
null
3,627,108
Using Theano to compute forward_propagation
<p>I tried to code the forward propagation with Theano. I define a class name hiddenLayer as below:</p> <p>import theano.tensor as T from theano import shared import numpy as np from theano import function</p> <pre></pre> <p>I want to set up a list of hiddenLayer objects and the current's hiddenLayer is the input of...
[ { "AnswerId": "23661302", "CreationDate": "2014-05-14T17:29:04.027", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>The problem is that you override the l.x in the second loop. You can't do that. Once self.x is used in the <strong>init</strong>, the result based on it ...
23,709,983
1
<python><theano>
2014-05-17T10:01:50.540
null
3,627,108
Theano function raises ValueError with 'givens' attribute
<p>I use function and want to use to iterate all the input samples. The code is as below:</p> <pre></pre> <p>It eventually raises an error:</p> <pre></pre> <p>Could you tell me why, and how to solve the problem?</p>
[ { "AnswerId": "23996593", "CreationDate": "2014-06-02T14:10:47.983", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>The problem is this: <code>train_set[index]</code></p>\n\n<p>Here train_set is a numpy ndarray and index a Theano variable. NumPy don't know how to work ...
23,729,919
1
<python><theano><summarization><deep-learning>
2014-05-19T04:53:35.457
null
3,025,272
Text summarization using deep learning techniques
<p><strong>I am trying to summarize text documents that belong to legal domain.</strong> </p> <p>I am referring to the site deeplearning.net on how to implement the deep learning architectures. I have read quite a few research papers on document summarization (both single document and multidocument) but I am unable to...
[ { "AnswerId": "23765727", "CreationDate": "2014-05-20T16:53:55.277", "ParentId": null, "OwnerUserId": "1724013", "Title": null, "Body": "<p>I think you need to be a little more specific. When you say \"I am unable to figure to how exactly the summary is generated for each document\", do you ...
23,744,826
1
<python><networking><theano><nnet>
2014-05-19T18:34:16.810
23,819,788
1,735,729
Binary output Neural Network in Python Theano
<p>As part of a personal project I'm trying to modify the example code given in Theano documentation (<a href="http://deeplearning.net/tutorial/mlp.html" rel="nofollow">Multilayer Perceptron</a>) with my own data.</p> <p>Till now I managed to bring my own (text) data in the format required and I want to build a binary...
[ { "AnswerId": "23819788", "CreationDate": "2014-05-23T01:47:43.927", "ParentId": null, "OwnerUserId": "534969", "Title": null, "Body": "<p>The logistic regression class used as output layer in the MLP tutorial is not the \"standard\" logistic regression, which gives as output a single value ...
23,783,391
1
<theano><deep-learning>
2014-05-21T12:37:08.187
null
2,166,433
ImportError: No module named 'theano.floatX'
<p>I am following a tutorial to create <a href="http://deeplearning.net/tutorial/lenet.html#lenet" rel="nofollow">convolution neural network with Theano</a>. Although, I got a problem in a piece of code:</p> <pre></pre> <p>I loaded floatX with: </p> <pre></pre> <p>and checked with:</p> <pre></pre> <p>But still ca...
[ { "AnswerId": "23789646", "CreationDate": "2014-05-21T17:05:01.477", "ParentId": null, "OwnerUserId": "534969", "Title": null, "Body": "<p>This sections of the convnet tutorial has a bug or is very outdated. Symbolic variables in Theano are located in theano.tensor package. This package thea...
23,788,179
2
<numpy><pycuda><theano><deep-learning>
2014-05-21T15:53:16.577
23,811,048
2,462,245
Is there a GPU accelerated numpy.max(X, axis=0) implementation in Theano?
<p>Do we have a GPU accelerated of version of in Theano. I looked into the documentation and found , but it is 4-5 times slower than the numpy implementation. </p> <p>I can assure you, it is not slow because of some bad choice of matrix size. Same matrix under theano.tensor.exp is 40 times faster than its numpy count...
[ { "AnswerId": "23797179", "CreationDate": "2014-05-22T03:05:50.957", "ParentId": null, "OwnerUserId": "2014584", "Title": null, "Body": "<p>The <code>max</code> and <code>exp</code> operations are fundamentally different; <code>exp</code> (and other operations like addition, <code>sin</code>...
23,978,598
1
<python><numpy><scipy><theano>
2014-06-01T09:50:55.863
23,978,780
1,828,289
Why does theano conv2d add empty dimension?
<p>I am playing around with some simple Theano code, and I ran into the following:</p> <pre></pre> <p>Result: (1, 91, 100)</p> <p>The result of a 2d convolution of 2d inputs is expected to be 2d, but it is actually 3d. Why?</p>
[ { "AnswerId": "23978780", "CreationDate": "2014-06-01T10:14:47.000", "ParentId": null, "OwnerUserId": "3489247", "Title": null, "Body": "<p>The docstring of <code>conv2d</code> says <em>signal.conv.conv2d performs a basic 2D convolution of the input with the\ngiven <strong>filters</strong>.<...
24,172,613
1
<python-2.7><lambda><theano>
2014-06-11T21:08:54.840
24,187,030
3,113,501
Theano scan function
<p>Example taken from: <a href="http://deeplearning.net/software/theano/library/scan.html" rel="nofollow">http://deeplearning.net/software/theano/library/scan.html</a></p> <pre></pre> <p>What is prior_result? More accurately, where is prior_result defined?</p> <p>I have this same question for lot of the examples giv...
[ { "AnswerId": "24187030", "CreationDate": "2014-06-12T14:31:15.513", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>This is using a Python feature call \"lambda\". lambda are unnamed python function of 1 line. They have this forme:</p>\n\n<pre><code>lambda [param...]: ...
24,183,108
1
<theano><matrix-indexing>
2014-06-12T11:22:30.603
24,186,817
1,099,534
Indexing in Theano
<p>How can I index a matrix in Theano by a vector of indices? <br> More precisely, say that:</p> <ul> <li><em>v</em> has type theano.tensor.vector (e.g. [0,2]) </li> <li><em>A</em> has type theano.tensor.matrix (e.g. [[1,0,0], [0,1,0], [0,0,1]])</li> </ul> <p>The desired result is [[1,0,0], [0,0,1]]. <br> I mention t...
[ { "AnswerId": "24186817", "CreationDate": "2014-06-12T14:22:19.933", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>You can do:</p>\n\n<pre><code>A[v]\n</code></pre>\n\n<p>It will do what you want.</p>\n" } ]
24,203,451
2
<numpy><matrix><theano>
2014-06-13T10:43:07.220
24,203,540
1,099,534
Matrices with different row lengths in numpy
<p>Is there a way of defining a matrix (say <em>m</em>) in numpy with rows of different lengths, but such that <em>m</em> stays 2-dimensional (i.e. m.ndim = 2)?</p> <p>For example, if you define <em>m = numpy.array([[1,2,3], [4,5]])</em>, then <em>m.ndim</em> = 1. I understand why this happens, but I'm interested if t...
[ { "AnswerId": "24203540", "CreationDate": "2014-06-13T10:47:55.023", "ParentId": null, "OwnerUserId": "166749", "Title": null, "Body": "<p>No, this is not possible. NumPy arrays need to be rectangular in every pair of dimensions. This is due to the way they map onto memory buffers, as a poin...
24,205,187
1
<theano>
2014-06-13T12:22:09.910
null
1,099,534
Variable-length tensors in Theano
<p>This question refers to best practices in Theano. Here is what I am trying to do:</p> <p>I am building a neural network for an SMT system. In this context, I conceptually represent sentences as variable-length lists of words, and words as fixed-length lists of integers. Ideally, I would like to represent my corpus ...
[ { "AnswerId": "30507375", "CreationDate": "2015-05-28T13:02:29.613", "ParentId": null, "OwnerUserId": "127480", "Title": null, "Body": "<p>The first option is probably the best option in most cases. It's what I do though it does mean passing around a separate vector of sentence lengths and m...
24,225,948
1
<math><numpy><theano>
2014-06-15T02:04:34.090
null
1,641,608
Revisit forcing python math functions to operate on float32
<p>I am aware of howto force python operations to work on float32: <a href="https://stackoverflow.com/questions/20768590/how-to-force-python-float-operation-on-float32-rather-than-float64">How to force python float operation on float32 rather than float64</a></p> <p>But there is no Q or A about forcing the built in fu...
[ { "AnswerId": "24225977", "CreationDate": "2014-06-15T02:10:54.737", "ParentId": null, "OwnerUserId": "2357112", "Title": null, "Body": "<pre><code>&gt;&gt;&gt; type(numpy.sqrt(numpy.float32(2)))\n&lt;type 'numpy.float32'&gt;\n</code></pre>\n\n<p><code>numpy.sqrt</code> already does what you...
24,229,361
1
<python><gpgpu><theano>
2014-06-15T11:58:23.743
24,329,482
826,983
Theano: Indexing inside a compiled function (GPU)
<p>Since Theano allows to <em>update</em> the memory on the graphics card DRAM by simply defining which memory area has to be updated and how this should be done, I was wondering if the following is somehoe possible (imho it should be).</p> <p>I have a 2x5 randomly initialized matrix which first column will be initial...
[ { "AnswerId": "24329482", "CreationDate": "2014-06-20T14:22:41.983", "ParentId": null, "OwnerUserId": "3760518", "Title": null, "Body": "<p>Have a look at: <a href=\"https://stackoverflow.com/questions/15917849/how-can-i-assign-update-subset-of-tensor-shared-variable-in-theano\">How can I as...
24,230,227
1
<theano><machine-translation>
2014-06-15T13:47:18.537
24,244,862
1,099,534
Typed Lists in Theano
<p>Consider the following machine translation problem. Let be a source sentence and be a target sentence. Both sentences are conceptually represented as lists of indices, where the indices correspond to the position of the words in the associated dictionaries. Example:</p> <pre></pre> <p>Note that and don't neces...
[ { "AnswerId": "24244862", "CreationDate": "2014-06-16T13:25:57.407", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>Typed list isn't used by anybody yet. But the idea for having them is that you iterate on them with scan for each sentence. Then you do everything you ne...
24,233,605
1
<python><theano>
2014-06-15T20:01:43.980
24,234,094
826,983
Concatenation/creation of symbolic expressions/statements
<p>I want to create something like this programmatically:</p> <pre></pre> <p>We got so a is that whole statement. This is not doing anything yet. Then there is which is depending on and is another statement itself.This goes on until . I know it looks ugly but it just updates the column of a vector like for retur...
[ { "AnswerId": "24234094", "CreationDate": "2014-06-15T21:02:48.470", "ParentId": null, "OwnerUserId": "3741258", "Title": null, "Body": "<p>You can use function nesting:</p>\n\n<pre><code>def nest(f, g):\n def h(x):\n return f(g(x), x)\n return h\n\nexpr = lambda (a,b) : a\nexpr...
24,263,390
3
<python><matrix><theano>
2014-06-17T12:07:19.943
24,268,694
1,099,534
From list of indices to one-hot matrix
<p>What is the best (elegant and efficient) way in Theano to convert a vector of indices to a matrix of zeros and ones, in which every row is the one-of-N representation of an index?</p> <pre></pre> <p>Example:</p> <pre></pre>
[ { "AnswerId": "40622953", "CreationDate": "2016-11-16T02:11:18.507", "ParentId": null, "OwnerUserId": "3041068", "Title": null, "Body": "<p>There's now a built in function for this <a href=\"http://deeplearning.net/software/theano/library/tensor/extra_ops.html#theano.tensor.extra_ops.to_one_...
24,286,238
1
<python><theano>
2014-06-18T12:58:30.263
24,314,997
1,099,534
Obscure Looping Error in Theano
<p>I am trying to simulate a repeat-until loop in Theano:</p> <pre></pre> <p>I encountered the following strange behaviour. Let be a constant. Whenever is a constant, everything works fine. However, when is a scalar, I get an error related to optimisation:</p> <pre></pre> <p>I'd appreciate if someone could help ...
[ { "AnswerId": "24314997", "CreationDate": "2014-06-19T19:41:47.303", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>The traceback indicate that in the function equal_compuations(), we didn't cover all case, when doing some comparison.</p>\n\n<p>I have a PR with a fix f...
24,331,893
1
<theano>
2014-06-20T16:35:15.843
null
1,784,599
Theano SDE example
<p>I'm trying to work through an example on solving SDEs on GPU using Theano found <a href="http://www.nehalemlabs.net/prototype/blog/2013/10/17/solving-stochastic-differential-equations-with-theano/" rel="nofollow">here</a></p> <p>I'm stuck with a GpuDimShuffle error, but I'm not seeing how any of the dims don't matc...
[ { "AnswerId": "24410185", "CreationDate": "2014-06-25T13:33:15.273", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>If you update to the development version, it work for me:</p>\n\n<p><a href=\"http://www.deeplearning.net/software/theano/install.html#bleeding-edge-inst...
24,347,565
1
<theano><deep-learning><automatic-differentiation><autoencoder>
2014-06-22T02:15:41.530
null
2,782,619
Does Theano support variable split?
<p>In my Theano program, I want to split the tensor matrix into two parts, with each of them making different contributions to the error function. Can anyone tell me whether automatic differentiation support this?</p> <p>For example, for a tensor matrix variable M, I want to split it into M1=M[:300,] and M2=M[300:,], ...
[ { "AnswerId": "24410773", "CreationDate": "2014-06-25T13:59:26.653", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>Theano support this out of the box. You have nothing particular to do. If Theano don't support something in the crash, it should raise an error. But you ...
24,402,213
1
<python><ubuntu><theano><theano-cuda>
2014-06-25T07:03:05.193
null
3,568,055
theano.test() : optimization failure due to constant_folding (on ubuntu)
<p>When running theano.test() on an Ubuntu operating system, some error message about an optimization failure is produced as follows:</p> <pre></pre> <p>Does anybody know a way to fix these problem, or what exactly is going on?</p>
[ { "AnswerId": "24409647", "CreationDate": "2014-06-25T13:10:35.310", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>This can be caused by many things. The error is related to the GPU. So first, make sure you can compile nvidia example and that they run fine. To be sure...
24,431,621
1
<python><gradient><backpropagation><theano>
2014-06-26T13:17:00.947
24,437,169
1,099,534
Does Theano do automatic unfolding for BPTT?
<p>I am implementing an RNN in Theano and I have difficulties training it. It doesn't even come near to memorising the training corpus. My mistake is most likely caused by me not understanding exactly how Theano copes with backpropagation through time. Right now, my code is as simple as it gets:</p> <pre></pre> <p>My...
[ { "AnswerId": "24437169", "CreationDate": "2014-06-26T17:57:21.027", "ParentId": null, "OwnerUserId": "2855342", "Title": null, "Body": "<p>I wouldn't say it does automatic \"unfolding\" - rather, Theano has a notion of what variables are connected, and can pass updates along that chain. If ...
24,459,062
1
<python><macos><matplotlib><theano>
2014-06-27T18:57:28.570
null
3,784,367
Compilation error ld: library not found for -lgcc_ext in MacOSX
<ol> <li><p>I'm trying to replicate a tutorial example in the <a href="http://deeplearning.net/software/pylearn2/" rel="nofollow">pyLearn2</a> documentation. When I run , in the example, I got this error:</p> <pre></pre> <p>Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO</p> <p>Expec...
[ { "AnswerId": "29567965", "CreationDate": "2015-04-10T18:03:24.547", "ParentId": null, "OwnerUserId": "1318153", "Title": null, "Body": "<p>It looks like <a href=\"https://lists.macosforge.org/pipermail/macports-users/2010-November/022662.html\" rel=\"nofollow\">one possible solution</a> is ...
24,468,482
1
<python><machine-learning><theano>
2014-06-28T15:49:52.687
24,496,769
3,054,726
Defining a gradient with respect to a subtensor in Theano
<p>I have what is conceptually a simple question about Theano but I haven't been able to find the answer (I'll confess upfront to not really understanding how shared variables work in Theano, despite many hours with the tutorials).</p> <p>I'm trying to implement a "deconvolutional network"; specifically I have a 3-ten...
[ { "AnswerId": "24496769", "CreationDate": "2014-06-30T18:40:12.860", "ParentId": null, "OwnerUserId": "2855342", "Title": null, "Body": "<p>To summarize the findings:</p>\n\n<p>Assigning <code>grad_var = codes[idx]</code>, then making a new variable such as: \n<code>subgrad = T.set_subtensor...
24,505,682
1
<python><python-2.7><spyder><theano>
2014-07-01T08:28:16.847
24,738,726
3,592,346
spyder: python: theano: How to disable warnings in spyder?
<p>I running machine learning algo's with theano. I have been getting lot of warnings of DeprecationWarning. coming from numpy package. I want to disable this warnings pls suggest option. warning nature:fromnumeric.py:932: DeprecationWarning: converting an array with ndim > 0 to an index will result in an error in t...
[ { "AnswerId": "24738726", "CreationDate": "2014-07-14T14:20:27.470", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>See this link to update Theano to the development version. I should be fixed:</p>\n\n<p><a href=\"http://deeplearning.net/software/theano/install.html#bl...
24,524,621
1
<python><pip><theano>
2014-07-02T06:51:19.163
null
1,358,855
use package from pip local instead pip global
<p>I have Theano library installed on </p> <pre></pre> <p>but the Theano installed is the old one and I am using some library that can't import some packages.</p> <p>So I tried to install the new one using </p> <pre></pre> <p>but everytime I import theano, the version is the old one which come from </p> <pre></pr...
[ { "AnswerId": "24709025", "CreationDate": "2014-07-12T02:26:05.297", "ParentId": null, "OwnerUserId": "949321", "Title": null, "Body": "<p>The problem is that the old version wasn't installed with pip, but probably with easy_install. This cause many type of problems.</p>\n\n<p>You can fix it...
24,540,358
1
<python><numpy><scipy><theano>
2014-07-02T20:21:45.677
null
1,460,123
Pylearn2 Tutorial Import Error
<p>While running python make_dataset in the quick start example for Pylearn2, I've run across an import error in a Theano file. The heart of the issue seems to be this: . I'm running development versions of numpy, scipy, Theano, and Pylearn2. Any ideas?</p> <pre></pre>
[ { "AnswerId": "24540875", "CreationDate": "2014-07-02T20:55:42.133", "ParentId": null, "OwnerUserId": "1460123", "Title": null, "Body": "<p>The problem was resolved after removing ATLAS, installing OpenBLAS, reinstalling numpy + scipy + theano, and then installing Pylearn2 from source. </p>\...
24,549,256
1
<python><theano>
2014-07-03T08:56:45.340
24,626,805
3,279,225
How to access theano.tensor.var.TensorVariable?
<p>Let's say I have a matrix w of size(1152, 10) like this:</p> <pre></pre> <p>and I have a input of size(1152, 1) like this:</p> <pre></pre> <p>Now I wanna calculate the dot multilication of them like this:</p> <pre></pre> <p>and it gave me:</p> <pre></pre> <p>Does theano.tensor.dot return a symbolic expressio...
[ { "AnswerId": "24626805", "CreationDate": "2014-07-08T08:15:09.180", "ParentId": null, "OwnerUserId": "2855342", "Title": null, "Body": "<p>In one word: yes.</p>\n\n<p>To see the result of the operation, use <code>result.eval()</code></p>\n\n<p>Minimal working example:</p>\n\n<pre><code>impo...
24,555,984
1
<python><theano>
2014-07-03T14:08:37.663
24,609,262
1,099,534
Invert Theano tensor element-wise
<p>My goal is to invert the values in a Theano tensor element-wise. For instance, I want to turn into . If there is a zero element, I want to keep it unchanged (e.g. should be turned into ). What is the most elegant way of doing this?</p> <p>My solution was to add a very small value to all the elements:</p> <pre></...
[ { "AnswerId": "24609262", "CreationDate": "2014-07-07T11:12:53.310", "ParentId": null, "OwnerUserId": "2855342", "Title": null, "Body": "<p>You can get this using <code>T.sgn()</code> since the sign of 0 is 0, though it will probably still fail for very, very small values <em>near</em> 0</p>...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
68