├── README.md └── img ├── bow.png ├── cbow.png └── deep_cbow.png /README.md: -------------------------------------------------------------------------------- 1 | # 🐙 ML Notebooks 2 | 3 | A series of code examples for all sorts of machine learning tasks and applications. The notebooks are meant to be minimal and easily reusable and extendable. You are free to use them for educational and research purposes. 4 | 5 | ## Getting Started 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 20 | 21 | 22 | 23 | 24 | 25 | 28 | 29 | 30 | 31 | 32 | 33 | 36 | 37 | 38 | 39 | 40 | 41 | 44 | 45 | 46 | 47 | 48 | 49 | 52 | 53 | 54 | 55 | 56 | 57 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 69 | 70 | 71 | 72 | 73 | 74 | 77 | 78 | 79 | 80 | 81 | 84 | 85 | 86 |
NameDescriptionNotebook
Introduction to Computational GraphsA basic tutorial to learn about computational graphs 18 | 19 |
PyTorch Hello World!Build a simple neural network and train it 26 | 27 |
A Gentle Introduction to PyTorchA detailed explanation introducing PyTorch concepts 34 | 35 |
Counterfactual ExplanationsA basic tutorial to learn about counterfactual explanations for explainable AI 42 | 43 |
Logistic Regression from ScratchAn implementation of logistic regression from scratch 50 | 51 |
Concise Logistic RegressionConcise implementation of logistic regression model for binary image classification. 58 | 59 |
First Neural Network - Image ClassifierBuild a minimal image classifier using MNIST 67 | 68 |
Neural Network from ScratchAn implementation of simple neural network from scratch 75 | 76 |
Introduction to GNNsIntroduction to Graph Neural Networks. Applies basic GCN to Cora dataset for node classification. 82 | 83 |
87 | 88 | 89 | ## NLP 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 103 | 104 | 105 | 106 | 107 | 108 | 111 | 112 | 113 | 114 | 115 | 116 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 128 | 129 | 130 | 131 | 132 | 133 | 136 | 137 | 138 |
NameDescriptionNotebook
Bag of Words Text ClassifierBuild a simple bag of words text classifier. 101 | 102 |
Continuous Bag of Words (CBOW) Text ClassifierBuild a continuous bag of words text classifier. 109 | 110 |
Deep Continuous Bag of Words (Deep CBOW) Text ClassifierBuild a deep continuous bag of words text classifier. 117 | 118 |
Text Data AugmentationAn introduction to the most commonly used data augmentation techniques for text and their implementation 126 | 127 |
Emotion Classification with Fine-tuned BERTEmotion classification using fine-tuned BERT model 134 | 135 |
139 | 140 | ## Transformers 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 156 | 157 | 158 | 159 | 160 | 161 | 165 | 166 | 167 | 168 | 169 | 170 | 174 | 175 | 176 | 177 | 178 | 179 | 183 | 184 | 185 | 186 | 187 | 188 | 192 | 193 |
NameDescriptionNotebook
Text Classification using TransformerAn implementation of Attention Mechanism and Positional Embeddings on a text classification task 153 | 154 |
155 | Kaggle
Neural Machine Translation using TransformerAn implementation of Transformer to translate human readabke dates in any format to YYYY-MM-DD format. 162 | 163 |
164 | Kaggle
Feature Tokenizer TransformerAn implementation of Feature Tokenizer Transformer on a classification task 171 | 172 |
173 | Kaggle
Named Entity Recognition using TransformerAn implementation of Transformer to perform token classification and identify species in PubMed abstracts 180 | 181 |
182 | Kaggle
Extractive Question Answering using TransformerAn implementation of Transformer to perform extractive question answering 189 | 190 |
191 | Kaggle
194 | 195 | ## Computer Vision 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 210 | 211 | 212 | 213 | 214 | 215 | 219 | 220 | 221 | 222 | 223 | 224 | 228 | 229 | 230 | 231 | 232 | 233 | 237 | 238 | 239 |
NameDescriptionNotebook
Siamese NetworkAn implementation of Siamese Network for finding Image Similarity 207 | 208 |
209 | Kaggle
Variational Auto EncoderAn implementation of Variational Auto Encoder to generate Augmentations for MNIST Handwritten Digits 216 | 217 |
218 | Kaggle
Object Detection using Sliding Window and Image PyramidA basic object detection implementation using sliding window and image pyramid on top of an image classifer 225 | 226 |
227 | Kaggle
Object Detection using Selective SearchA basic object detection implementation using selective search on top of an image classifer 234 | 235 |
236 | Kaggle
240 | 241 | 242 | 243 | If you find any bugs or have any questions regarding these notebooks, please open an issue. We will address it as soon as we can. 244 | 245 | Reach out on [Twitter](https://twitter.com/omarsar0) if you have any questions. 246 | 247 | Please cite the following if you use the code examples in your research: 248 | 249 | ``` 250 | @misc{saravia2022ml, 251 | title={ML Notebooks}, 252 | author={Saravia, Elvis and Rastogi, Ritvik}, 253 | journal={https://github.com/dair-ai/ML-Notebooks}, 254 | year={2022} 255 | } 256 | ``` 257 | -------------------------------------------------------------------------------- /img/bow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishpatel26/ML-Notebooks/a5850e55e8fda6528818e99db172fe80eb9e3a09/img/bow.png -------------------------------------------------------------------------------- /img/cbow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishpatel26/ML-Notebooks/a5850e55e8fda6528818e99db172fe80eb9e3a09/img/cbow.png -------------------------------------------------------------------------------- /img/deep_cbow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishpatel26/ML-Notebooks/a5850e55e8fda6528818e99db172fe80eb9e3a09/img/deep_cbow.png --------------------------------------------------------------------------------