Posts

[Day 133] Gathering data for the Scottish dataset project + Factor analysis + Grokking ML + MLxFundamentals Day 4 (2)

Image
 Hello :) Today is Day 133! A quick summary of today: started putting together some audio clips + transcription for the Scottish dataset project saw how eigenvalues play a role in factor analysis started reading Grokking Machine Learning on Manning.com finished MLx Fundamentals ' final session Firstly, about the audio data My Scottish partner for this project has recorded various phrases in Glaswegian in the past and uploaded them to youtube . Today I did 4 of the 10 videos.  To cut the clips I ended up using an app called VideoPad, and even though it is a paid app, it allows me to just cut an audio clips in smaller pieces and save them as new files.  This is a sample audio waveform of one of the 4 videos What I did was, make short clips around each expression. I am not sure what these waves are called when there is speech. So for example from the above, I ended up with 36 clips, and uploaded them all (along with the other 3 videos' audio clips) to our project's drive. An...

[Day 132] MLx Fundamentals Day 4(1) + CS109: Fairness in AI

Image
 Hello :) Today is Day 132! A quick summary of today: last night was the final day 4 of MLxFundamentals covered lecture 26 : fairness from Stanford's CS109 Schedule was (time is in BST): The practical session on GenAI (Vision&NLP) was too late for my local time so I will rewatch the recording and share about it in tomorrow's post. Firstly, Meng Fang from the University of Liverpool The lecture was a general intro to LLMs Examples for coding, art, Q&A. Then talked about GPT, and the transformer architecture.  Then, some prompt engineering strategies (zero-shot, few-shot, chain-of-thought, self consistency) Then, a brief intro to retrieval-based models. It was mostly based on the ACL 2023 talk which I covered around Day 74 . Finally, language agents. It was a lot of content for just 2 hours, but it was a nice overview. Secondly, about CS109 Lecture 26 on Fairness: Professor Piech introduced the topic of fair AI, and how we need to be aware of the problems it can cause i...

[Day 131] Meeting for the Scottish dataset project + CS109: Deep learning

Image
 Hello :) Today is Day 131! A quick summary of today: Met the enthusiast wanting to join for the Scottish AI dataset (over zoom) Covered lecture 25 : deep learning from Stanford's CS109 Day 3 of MLx Fundamentals Tonight it is the final Day 4 of the MLx Fundamentals, so hopefully I will include the info about the last 2 classes in tomorrow, or next day's post. Firstly, about the meeting For now I will call them M, but I guess next time I will ask if I can even just use their first name here. Anyway ~ we linked up on linkedin and we decided to meet through zoom this morning. The meeting went for about ~50mins. Topics we covered: general intro of each other a bit of background M told me a bit more about the Scottish accent and how there are 3 main splits - Highlands, West coast and East coast, and that where they are from (West coast) the accent is the least represented - known as Glaswegian.  We talked about clips, what audio we can use, length after the meeting I read some more...

[Day 130] CS109: MAP, Naive Bayes, Logistic Regression

Image
 Hello :) Today is 130! A quick summary of today: covered Lecture 22 : MAP, Lecture 23 : Naive Bayes, Lecture 24 : Logistic Regression from Stanford's CS109 From 11pm later, to 3am (I believe) is the 3rd day of MLx Fundamentals , and I will share about the 2 sessions tomorrow.  Lecture 22: MAP We saw new method for optimization: gradient descent (or ascent for now). We want to choose theta, that is the argmax of some function. Seeing the blue curve is nice, but what can we do if we cannot see it ? Imagine we start with a random theta value, we look at the likelihood of that theta, and we can know the derivative at that point, and based on that we can follow along where the derivative is positive. When we reach the top, we actually don’t know we are at the top but when we check the gradient is 0. So we assume we are at the top. In the real world, because we want to think of minimising the loss, we minimise the negative log likelihood. MLE is great, but it ha...