Welcome

Theano is a Python library that allows you to define, optimize, andevaluate mathematical expressions involving multi-dimensionalarrays efficiently. Theano features:

  • tight integration with NumPy – Use numpy.ndarray in Theano-compiled functions.
  • transparent use of a GPU – Perform data-intensive calculations up to 140x faster than with CPU.(float32 only)
  • efficient symbolic differentiation – Theano does your derivatives for function with one or many inputs.
  • speed and stability optimizations – Get the right answer for log(1+x) even when x is really tiny.
  • dynamic C code generation – Evaluate expressions faster.
  • extensive unit-testing and self-verification – Detect and diagnose many types of errors.

Theano has been powering large-scale computationally intensivescientific investigations since 2007. But it is also approachableenough to be used in the classroom (University of Montreal’s deeplearning/machine learning classes).

News

Transparent GPU Computing With Theano. James Bergstra, SciPy 2010, June 30, 2010.

Download

Theano is now available on PyPI, and can be installed via easy_install Theano, pip install Theano or by downloading and unpacking the tarballand typing python setup.py install.

Those interested in bleeding-edge features should obtain the latest developmentversion, available via:

  1. git clone git://github.com/Theano/Theano.git

You can then place the checkout directory on your $PYTHONPATH or usepython setup.py develop to install a .pth into your site-packagesdirectory, so that when you pull updates via Git, they will beautomatically reflected the “installed” version. For more information aboutinstallation and configuration, see installing Theano.

Status

Welcome - 图2 Latest PyPI version Number of PyPI downloads

Citing Theano

If you use Theano for academic research, you are highly encouraged (though notrequired) to cite the following, most recent paper:

Theano is primarily developed by academics, and so citations matter a lot tous. As an added benefit, you increase Theano’s exposure and potential user(and developer) base, which is to the benefit of all users of Theano. Thanksin advance!

See our Theano Citation Policy for details.

Documentation

Roughly in order of what you’ll want to check out:

You can download the latest PDF documentation, rather than reading it online.

Check out how Theano can be used for Machine Learning: Deep Learning Tutorials.

Theano was featured at SciPy 2010.

Community

“Thank YOU for correcting it so quickly. I wish all packages I worked with would have such an active maintenance - this is as good as it gets :-)”

(theano-users, Aug 2, 2010)

  • Register to theano-announce if you want to be kept informed on important change on theano(low volume).
  • Register and post to theano-users if you want to talk to all Theano users.
  • Register and post to theano-dev if you want to talk to the developers.
  • Register to theano-github if you want to receive an email for all changes to the GitHub repository.
  • Register to theano-buildbot if you want to receive our daily buildbot email.
  • Ask/view questions/answers at StackOverflow
  • We use Github tickets to keep track of issues(however, some old tickets can still be found onAssembla).
  • Come visit us in Montreal! Most developers are students in the LISA group at the University of Montreal.

Help!

How to Seek Help

The appropriate venue for seeking help depends on the kind of question you have.

  • How do I? – theano-users mailing list or StackOverflow
  • I got this error, why? – theano-users mailing list or StackOverflow (please include the full error message, even if it’s long)
  • I got this error and I’m sure it’s a bug – Github ticket
  • I have an idea/request – post the suggestion to theano-dev or, even better, implement the idea and submit a GitHub pull request!
  • Why do you? – theano-users mailing list (not appropriate for StackOverflow)
  • When will you? – theano-dev mailing list (not appropriate for StackOverflow)

Please do take some time to search for similar questions that were asked and answered in the past. If you find somethingsimilar that doesn’t fully answer your question, it can be helpful to say something like “I found X but it doesn’taddress facet Y” and link to the previous discussion.

When asking questions on StackOverflow, please use the theano tag, so your question can be found, and followStackOverflow’s guidance on asking questions. Consider also using thepython and numpy tags, especially if you are unsure which library your problem relates to.

It’s often helpful to include the following details with your question:

  • If you have an error, the full error message, even if it’s long
  • Which versions of Python and Theano you’re using
  • Whether you’re using a CPU or GPU device
  • Details of your Theano configuration settings (you can print this in Python via print theano.config)

Spending the time to create a minimal specific example of a problem is likely to get you to an answer quicker thanposting something quickly that has too much irrelevant detail or is too vague. A minimal example may take you a bit moretime to create but the first response is more likely to be the answer you need than, rather than a frustrated requestfor clarification.

How to provide help

If you see a question on the theano-users mailing list, or on StackOverflow, that youfeel reasonably confident you know an answer to, please do support the community by helping others.

We were all newbies to Theano once and, as the community expands, there is a constant stream of new Theano users lookingfor help. Perhaps you asked a question when you were first starting out? Now you can pay it forward by helping others.It’s also a good way to reinforce your own Theano knowledge.

Often it’s easiest to answer a question directly but sometimes it may be better to refer people to a good answer thatwas provided in the past. Pointing people to relevant sections in the documentation, or to a Theano tutorial, can alsobe helpful.

When answering questions please be nice (as always!) and, onStackOverflow, follow their guidance for answering questions.