Posts

Showing posts from February 23, 2024

[Day 53] Getting closer to becoming a 'backprop ninja' (thanks to Stanford Uni's cs231n assignments)

Image
 Hello :) Today is Day 53! A quick summary of today Started Stanford University's cs231n , and today I covered: Image Classification: Data-driven Approach, k-Nearest Neighbor, train/val/test splits Linear classification: Support Vector Machine, Softmax Optimization: Stochastic Gradient Descent Backpropagation, Intuitions First I will quickly share my notes from the 1st three, and then for the big one (backprop) - will do it last. 1st lecture - Image classification using KNN Actually my impression is not so much from the theory in the lecture, but from the assignment exercises which the course has.  The KNN assignment was about implementing the loss of KNN (L1/L2 distance) and how to do it efficiently.  Firstly there was the most inefficient one - with two for loops Then it was with one for loop And then, the most efficient one which uses matrix multiplication magic I have never implemented knn by myself so this was a nice challenge. Also all 3 were compared and the results are: - T