Install Theano, first install Anconda, Last Post has introduced, here no longer repeat
1. Conda install MinGW Libpython in Anconda prompt
2.conda Install Theono
3. Modify the environment variables,
D:\ProgramFiles\Anaconda3;
D:\ProgramFiles\Anaconda3\Library\bin;
D:\ProgramFiles\Anaconda3\MinGW\bin;
D:\ProgramFiles\Anaconda3\MinGW\x86_64-w64-mingw32\lib;
D:\ProgramFiles\Anaconda3\Scripts;
NEW: PYTHONPATH
D:\Program Files\anaconda3\lib\site-packages\theano
Note that it is your own installation path.
4. New in Home (that is, the current directory of the command line)
. theanorc.txt files, both of which are not few, and then type in the file
[Global]
Openmp=false
[Blas]
ldflags=
[GCC]
Cxxflags=-id:\anaconda3\mingw
5. Testing
Import Theano
w= theano.shared (1) #定义一个共享变量w with an initial value of 1
X=theano.tensor.iscalar (' x ')
F=theano.function ([x], W, Updates=[[w, W+x])) #定义函数自变量为x, the dependent variable is w, and when the function is finished, update the parameters w=w+x
Print (f (3)) #函数输出为w
Print (W.get_value ()) #这个时候可以看到w =w+x to 4
This is mainly used when the gradient drops,
The installation was successful.
Win7 64bit installation Theano