SKLEARN

How to do Cross Validation and Grid Search for Model Selection in Python

How to do Cross Validation and Grid Search for Model Selection in Python Introduction A typical machine learning process involves training different models on the dataset and selecting the one with best performance. However, evaluating the performance of algorithm is not always a straight forward task. There are several factors that can help you determine …

Hierarchical Clustering with Python and Scikit-Learn

  Hierarchical Clustering with Python and Scikit-Learn Hierarchical clustering is a type of unsupervised machine learning algorithm used to cluster unlabeled data points. Like K-means clustering, hierarchical clustering also groups together the data points with similar characteristics. In some cases the result of hierarchical and K-Means clustering can be similar. Before implementing hierarchical clustering using Scikit-Learn, let’s first understand …

How to implement K-Nearest Neighbors Algorithm in Python and Scikit-Learn

  How to implement K-Nearest Neighbors Algorithm in Python and Scikit-Learn The K-nearest neighbors (KNN) algorithm is a type of supervised machine learning algorithms. KNN is extremely easy to implement in its most basic form, and yet performs quite complex classification tasks. It is a lazy learning algorithm since it doesn’t have a specialized training phase. Rather, …