Posts

Why we enjoy music

Originally published in https://ideafair.bearblog.dev/why-we-enjoy-music/ Why we enjoy music 10 Jan, 2021 M usic and ML I think the reason why we enjoy music can be explained in terms of Machine Learning (ML). Music can be seen as an audio signal that has multiple levels of patterns in it. When we listen to music our brain is trying to learn and predict this pattern. We enjoy music when the brain is finally successful at this task. There must be some innate reward function for being able to learn and predict patterns successfully in our brain. Confidence and Accuracy To go bit deeper into when exactly we enjoy music the most, we can look at our brain's confidence & accuracy of the music prediction. At first both the confidence and accuracy are low, but after listening to the tune several times our accuracy increases. At this point we are able to predict with higher accuracy, but the confidence is still low. This is my guess when the enjoyment is highest as we are building confi...

ML system design interview

 This was originally posted on https://ideafair.bearblog.dev/ml-system-design/ on 1 Jan 2021 ML System design interview 01 Jan, 2021 This post details how a typical Machine Learning (ML) system design interview is conducted. It is quite similar to a software engineering system design interview, but there are many differences which I will list here. The candidate is given a problem and asked how they would go about designing the solution for the problem. Some example problems are: plagiarism detector for a class, YouTube video recommender, grammar correction service etc. The interviewer then expects the candidate to lead most of the discussion, occasionally bringing in what-ifs, asking clarifying questions, digging down on the details etc. My approach for solving ML design is to divide it to following sections. Sections of interview Problem clarification It is good to ask as many questions as possible, state out all of your assumptions clearly. Not doing any one of the above an...

Lessons from Software Engineering

Image
I have been a software Engineer in Microsoft for a year and half and I would like to share how I have learned the craft so far in hopes that it may help others. Theory  I like reading books as I believe this gives much deeper understanding of a subject. After some research online and asking people for suggestion I found some candidates. Programming Pearls by Jon Bentley is small book so I figured I could finish it fast. One important take away I got from this book is that a good Software Engineer thinks a lot before jumping to code. The second book I read is Code Complete 2 . This is old and you might want to skip some parts (Gotos, pointers etc) which are not applicable today. This book took many months to finish but it was worth it. I especially liked the parts about construction at different levels (requirement, architecture, OO classes), guide for naming, refactoring functions. Find all the learning resources your company provides and make good use of them. If you don'...

History Mania

For some time I have become interested in history. I never liked that subject in school because I couldn't connect it with anything else but now things are making more sense. I can fit various facts into places, make sense of this world, so history now makes sense. I guess there is a basic urge to make sense of things. Questions like how did we end up here? Where are we going etc. This is especially soothing when I see the stark difference between India and USA and ask myself why is India so poor? Well a bit of history makes it abundantly clear. India has been free for only 50 years so we need some time. Looting by the British had taken it's toll. It all started with this video series made by John Greene called Crash Course World History  Youtube Playlist link . It was interesting and fun to watch. I also like this show because it shows the future of content creation, where individuals not big companies create content. I liked it so much that recently after couple of years when...

History mania

For some time I have become interested in history. I never liked that subject in school because I couldn't connect it with anything else but now things are making more sense. I can fit various facts into places, make sense of this world, so history now makes sense. I guess there is a basic urge to make sense of things. Questions like how did we end up here? Where are we going etc. This is especially soothing when I see the stark difference between India and USA and ask myself why is India so poor? Well a bit of history makes it abundantly clear. India has been free for only 50 years so we need some time. Looting by the British had taken it's toll. It all started with this video series made by John Greene called Crash Course World History  Youtube Playlist link . It was interesting and fun to watch. I also like this show because it shows the future of content creation, where individuals not big companies create content. I liked it so much that recently after couple of years w...

Fiction blog.

Check my other blog  rhymeisnotcrime.blogspot.com  where I post fiction.

Wages

 I guess one useful way to measure wealth of a nation is the time into labor versus the amount of utility you get (Related to  Big Mac Index ). From my experience of living in India and US here are few observations.  Lets compare a software engineer paid about Rs 50k per month as software engineer in Bangalore to someone doing blue collar job like Subway worker in US getting 10$/hour.  For the software Engineer working on 40hrs/week x 4 weeks gives 160Hrs. Therefore 50k/160Hrs = 312 Rs/hr. Converting that into $ gives 5.2$/Hr, roughly half of US worker. The minimum wage according to Wikipedia is around 0.4$. Now this might sound less, but the cost of living is way less in India. It's strange that some things are cheap in India, and other things are actually cheaper in US. We can compare some stuff. Food:  A Subway sandwich costs about 6$ in US while in India it may cost 2$. So a subway worker has to work 36mins to earn a sandwich while the Indian Software Engine...