Quote for the day
Just imagine what you are losing just because you are not reading!
— Ernest Agyemang Yeboah
Just imagine what you are losing just because you are not reading!
— Ernest Agyemang Yeboah
I am revisiting the book titled, Introduction to Statistical Learning with
Applications in R, after 7 years. It was back in 2013, when I read through this
book for the first time, and worked through the book. Needless to say R
ecosystem has expanded greatly since then. I have done many projects in the
field of data science and have grown a bit wiser. This blogpost summarizes my
re-learnings from this fascinating book, that is a bridge to Elements of
Statistical Learning, a book that is considered the bible of Statistical
Learning
This blog post contains the main points from the paper titled, ESG Investments: Filtering versus Machine Learning approaches .
This blog post talks about some of my learnings from the book “Mathematical Notation”
This blog post summarizes the book titled “The Formula - The Science Behind Why People Succeed or Fail”
This blog post summarizes the book titled “Python Tricks - A Buffet of Awesome Python Features”
This blog post summarizes the book titled “You Look Like a Thing and I Love You”
The following post contains a summary of the book titled Treading on Python II by Matt Harrison
iter is a global built-in function that calls the object’s dunder method __iter__for loop based on iterators | |
list and string have separate iterator objects to iterate upon themStringIO class implements the iterator protocol__iter__ and __next____iter__ method and must return an iterator object. This iterator object can be the same object or a completely different object__next__ methodrange(10) returns an rangeiterator object that implements __iter__ and __next__ methodsself-iterator if its __iter__ method returns the same instance on which the dunder method has been invokedself-iterators. They return a different object when their __iter__ method is invoked | |
The above code does not work as desired as the iter returns the same instance and the inner loop goes through only once and never gets repeated. The solution to this problem is to make sure that the iter method returns a different object as compared to the original object on which the method was invoked
The following post contains a summary of the book titled Tiny Python Projects by Ken Youens-Clark
What did I learn from going through 2 hours of videos on Pytest ?
pytest the most popular Python package for testingunittesting comes with Python. It is used to test the internals of core python. It is a good solid tool but there are a lot of api calls that one might have to learn.’s are used to represent the number of functions tested in a test fileException and pytest can be used to check whether the right exceptions are occurring in the code.method is a function attached to a classfixtures that helps you incorporate the set up that goes along with testing a functionfixtures should be a part of conftest.pypytest has a built-in fixturespytest has a rich set of ecosystem that gives a set of variety of new fixturesfixtures for setup/reuseAfter working through the examples, I am now much more comfortable in going through the book on pytest. There is no doubt that I will be using all these things in the UOB project implementation
The following post contains a summary of the book titled Python Workout by Reuven M. Lerner
The following are the learnings from Hugging Face Interview in Oct 2019
| |
Here are the top 25 models as of
Watched a fantastic Ted Talk that highlighted the importance of gamifying learning
no penalty means increased attempts and better scoreThe following are my learning from the paper titled, Attention is all you need :

What did I learn from attention primer from Jay Allamar
What did I learn from CodeEmporium about BERT and Transfomers
What did I learn from transformer primer from Jay Allamar
This blog post summarizes the book titled “Information Theory”
The following are my learnings from the book .
The following are the takeaways from the course:
The following are the learnings from the podcast:
The following are the learnings from the podcast:
The following are the learnings from the podcast:
The following are the takeaways from Ian GoodFellow Interview.

Kyle Polich discusses the limitations of Bert Model.
This post summarizes the book, “Indistractable”.
My learnings from this article on parallel processing :
My learnings from attending a 3 hour session on Deep Learning :
The following is an excellent summary of Data Leakage in time series testing.
The following are my learnings from the Meetup talk by Prof Hyndman .
The following are my learnings from the Hyndman-MASE .

Kyle Polich discusses BERT. The following are my takeaways.
The following are my takeaways from the talk, Embedding work in NLP .
The following are some of the takeaways from this medium article.
In this brief post, I would like to pen down my thoughts on two aspects: Heuristics and Non-Intepretability of models.
Let’s look at word embedding matrix. If you take a bunch of words and want to build a learning algorithm, the first task is to convert the text in to a bunch of numbers. The two popular algorithms that have revolutionized the field of NLP are Skipgram method and CBOW method. Both involve learning a lower dimensional representation of the word. The dimensions are not interpretable as the dimensions are not unique. The fact that dimensions are not interpretable did not stop someone from developing fantastic applications. Suppose you are in foreign country and you are lost and want to check with someone the correct way to your destination: You flip open your phone, speak your native language and your phone translates the sentence to a foreign language (text/audio), and use it converse with strangers. The job gets done. Do you really care how the word embedding algo is working ? Not really. So, we don’t need to be hung up in intepretability for all applications. In trading for example, if the strategy makes money, you might not care too much about the interpretability of the strategy.
This post illustrates CNN LSTM Models that can be fit to simple time series data.
This post illustrates the early stopping callback in Keras.
This post illustrates generative LSTM via a plain vanilla LSTM.
This post creates a Bidirectional LSTM and learns a simple pattern in the sequence.
This post has two pop quizzes relating to the output of LSTM.
This post creates a plain vanilla LSTM and learns a simple pattern in the sequence.
This post creates a sequence to sequence LSTM and learns a simple pattern in the sequence.
This post creates a Stacked LSTM and learns a simple pattern in the sequence.
This post attempts to summarize the contents of the book Ultra learning by Scott H Young.
The following are my learnings from Jose course on NLP.
This post gives some of the learnings from the deliberate practice on spacy.
I was able to undersand the basic idea behind RNN after working through an example from the book by Antonio Gulli.
I was puzzled with the way LSTMs were used to do sentiment analysis. Finally the book by Antonio Gulli helped me understand the mechanics of the LSTM.
In this article, I will explain the way you can code a simple RNN that tracks a simple shift in the pattern, i.e a value from a normal distribution.
As compared to previous implementations where we had used OutputProjectionWrapper, this code does away with that component and does it more efficiently
| |
| |
| |
The output from testing validation data is
In this article, I will explain the way you can code a simple RNN that tracks a simple shift in the pattern
| |
| |
| |
The output from testing validation data is