Posts tagged with "algorithms comparision"
When is the Best Sorting Algorithm the best?
July 11, 2018
I wrote a python code which plots the variations of average time of execution for various input sizes. I took the actual time of execution on my machine rather than the counts as this is exercise is for finding the most practical solution.
Fast One Hot Encoding using Numpy (No For Loops)
July 11, 2021
In a lot of artificial intelligence applications, specially in supervised learning classification problems, where the labels for each of the datapoints are available, we often have a one-dimensional array containing the classes of each of the datapoints. Depending upon the machine learning algorithm we are going to apply to our dataset for classification, we might [...]
Linear vs Logistic Regression, all in Numpy
July 20, 2021
The two entry level machine learning algorithms , linear and logistic regression are quite easy to understand and provide a good way to practice coding the general machine learning pipeline, in their vectorized form. Namely, Prepping the dataset, eg: removing outliers, adding features(polynomial multiples of existing features), normalization, feature scaling. Implementing the learning algorithm function. [...]