Categories
Uncategorized

List reshaping with Numpy

While working with datasets, it is often times required to change the shape of it. For example, you have one long list with all the data in it. Each data value inside the list reflects a daily record. If you are interested in a weekly analysis, you need to transform it from a one dimensional […]

Categories
Uncategorized

Gradient Descent Introduction

Gradient descent is an optimization algorithm for finding the maximum/minimum of some function. It is an iterative approach where you are calculating the slope of a derivative function to move step wise to the maximum/minimum value. The slope on this example is at 2. By decreasing/increasing x step wise and comparing the result with the […]