Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stared/thinking-in-tensors-writing-in-pytorch
Thinking in tensors, writing in PyTorch (a hands-on deep learning intro)
https://github.com/stared/thinking-in-tensors-writing-in-pytorch
deep-learning pytorch pytorch-tutorial tensor
Last synced: 4 days ago
JSON representation
Thinking in tensors, writing in PyTorch (a hands-on deep learning intro)
- Host: GitHub
- URL: https://github.com/stared/thinking-in-tensors-writing-in-pytorch
- Owner: stared
- License: mit
- Created: 2018-12-26T13:13:23.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-22T23:50:51.000Z (almost 2 years ago)
- Last Synced: 2024-10-18T21:36:56.336Z (26 days ago)
- Topics: deep-learning, pytorch, pytorch-tutorial, tensor
- Language: Jupyter Notebook
- Homepage: https://colab.research.google.com/github/stared/thinking-in-tensors-writing-in-pytorch/
- Size: 1.55 MB
- Stars: 329
- Watchers: 6
- Forks: 44
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Thinking in tensors, writing in PyTorch
A hands-on deep learning introduction, from pieces.
For an interactive, installation-free version, use Colab: https://colab.research.google.com/github/stared/thinking-in-tensors-writing-in-pytorch/
By [Piotr Migdał](https://p.migdal.pl/) et al. (Weronika Ormaniec, possibly others)
> “Study hard what interests you the most in the most undisciplined, irreverent and original manner possible.” ― Richard Feynman
> “Scientists start out doing work that's perfect, in the sense that they're just trying to reproduce work someone else has already done for them. Eventually, they get to the point where they can do original work. Whereas hackers, from the start, are doing original work; it's just very bad. So hackers start original, and get good, and scientists start good, and get original.” - Paul Graham in [Hackers and Painters](http://www.paulgraham.com/hp.html)
## Supporters
This project supported by: [Jacek Migdał](http://jacek.migdal.pl/), [Marek Cichy](https://medium.com/@marekkcichy/). [Join the sponsors - show your ❤️ and support](https://github.com/sponsors/stared)! It will give me time and energy to work on this project!
This project benefited from [University of Silesia in Katowice](http://english.us.edu.pl/) course, which they let me to open source.
## What's that?
Mathematical concepts behind deep learning using PyTorch 1.0.
* All math equations as PyTorch code
* Explicit, minimalistic examples
* Jupyter Notebook for interactivity
* “On the shoulders of giants” - I link and refer to the best materials I know
* Fully open source & open for collaboration (I guess I will go with MIT for code, CC-BY for anything else)## Why not something else?
There are quite a few practical introductions to deep learning. I recommend [Deep Learning in Python](https://www.manning.com/books/deep-learning-with-python) by François Chollet (the Keras author). Or you want, you can classify small pictures, or extraterrestrial beings, today.
When it comes to the mathematical background, [Deep Learning Book](https://www.deeplearningbook.org/) by Ian Goodfellow et al. is a great starting point, giving a lot of overview. Though, it requires a lot of interest in maths. Convolutional networks start well after page 300.
I struggled to find something in the middle ground - showing mathematical foundations of deep learning, step by step, at the same time translating it into code. The closest example is [CS231n: Convolutional Neural Networks for Visual Recognition](http://cs231n.stanford.edu/) (which is, IMHO, a masterpiece). Though, I believe that instead of using NumPy we can use PyTorch, giving a smooth transition between mathematic ideas and a practical, working code.
Of course, there are quite a few awesome posts, notebooks and visualizations. I try to link to the ones that are useful for reader. In particular, I maintain a collaborative list of [Interactive Machine Learning, Deep Learning and Statistics websites](https://p.migdal.pl/interactive-machine-learning-list/).
## Contribute!
Crucially, this course is for you, the reader. If you are interested in one topic, let us know! There is nothing more inspiring that eager readers.
## Style
* Start with concrete examples first
* First 1d, then more
* Equations in LaTeX AND PyTorch
* `x.matmul(y).pow(2).sum()` not `torch.sum(torch.matmul(x, y) ** 2)`## Adverts
A few links of mine:
* [Learning deep learning wth Keras](https://p.migdal.pl/2017/04/30/teaching-deep-learning.html) - an overview of deep learning (what's that? what one should learn before); post from 2017 but surprisingly up-to-date
* My deep learning framework credo: [Keras or PyTorch as your first deep learning framework](https://deepsense.ai/keras-or-pytorch/)
* [Keras vs. PyTorch: Alien vs. Predator recognition with transfer learning ](https://deepsense.ai/keras-vs-pytorch-avp-transfer-learning/)
* [My general overview of “how to start data science”](https://p.migdal.pl/2016/03/15/data-science-intro-for-math-phys-background.html) (turns out - not only for math/phys background; though, I intend to write a separate text for non-STEM backgrounds)
* [Quantum Tensors](https://github.com/stared/quantum-tensors) - a JavaScript / TypeScript package for sparse tensor operations on complex numbers. For example for quantum computing, quantum information, and well - the Quantum Game.
* [Simple diagrams of convoluted neural networks](https://medium.com/inbrowserai/simple-diagrams-of-convoluted-neural-networks-39c097d2925b) - on deep learning architecture visualizations
* I am an independent AI consultant, specializing in giving hands-on trainings in deep learning (and general machine learning). If you are interested in a workshop, let me know at [p.migdal.pl](https://p.migdal.pl/)!