How to Build a Custom Instruction Dataset for LLM Fine-Tuning
Learn how to build a custom instruction dataset for LLM fine-tuning, covering Alpaca, ShareGPT, and DPO formats, quality filtering, synthetic data...
Every Machine Learning tutorial on Machine Learning Plus in one place: Machine Learning, Predictive Modeling, Deployment and Deep Learning. 56 guides with code you can read, copy and run.
Learn how to build a custom instruction dataset for LLM fine-tuning, covering Alpaca, ShareGPT, and DPO formats, quality filtering, synthetic data...
Creating custom regressors in scikit-learn means building your own machine learning models that follow scikit-learn's API conventions, allowing them...
A structured roadmap to learn Data Science, AI, and ML from scratch. Covers foundations, Python, statistics, machine learning, deep learning, and...
Understand the key differences between mutual information and cross-entropy. Learn how each measures relationships between probability distributions...
Bayesian Optimization is a method used for optimizing 'expensive-to-evaluate' functions, particularly useful in hyperparameter tuning for machine...
At its core, KL (Kullback-Leibler) Divergence is a statistical measure that quantifies the dissimilarity between two probability distributions.
The Probe method is a highly intuitive approach to feature selection. The idea is to introduce a random feature to the dataset and train a machine...
Cook’s distance is a measure computed to measure the influence exerted by each observation on the trained model. It is measured by building a...
Z score, also called as standard score, is used to scale the features in a dataset. It can also be used to detect outliers.
Z score is one of the most important concepts in statistics. It is also called __standard score__. Typically it is used to scale the features for...
Outliers are those specific data points that differ significantly from others. Let's understand how to identify them using IQR and Boxplots.
MICE Imputation, short for 'Multiple Imputation by Chained Equation' is an advanced missing data imputation technique that uses multiple iterations...
Spline interpolation is a special type of interpolation where a piecewise lower order polynomial called spline is fitted to the datapoints.
Interpolation can be used to impute missing data. Let's see the formula and how to implement in Python.
The quality of ML model results depend on the data provided. Missing values in data degrade the quality. Let's see how to use missing data imputation...
Exploratory Data Analysis (EDA) is the step where you understand the data in detail: each variable through frequency counts and distribution plots...
ML modeling is the step where machine learning is used to find patterns in data and use that learned knowledge to predict an outcome
Adaboost is one of the earliest implementations of the boosting algorithm. It forms the base of other boosting algorithms.
Let's understand how to define and formulate the machine learning problem (for predictive modeling) from a business problem.
Build your first machine learning project in Python from scratch. A beginner-friendly, step-by-step guide, no prior ML experience needed to get...
Python is the most popular programming language used for AI and machine learning. Let’s see how to setup python environment for ML using anaconda.
The train-test split technique is a way of evaluating the performance of machine learning models
A cheat sheet of tasks and things to take care of for every end-to-end ML projects
The Data Science Roadmap: a self-study guide to machine learning in about 6 months, with what to learn for data science, ML, AI and statistics, the...
Why understanding the math behind ML algorithms matters even when libraries exist. Learn how mathematical intuition helps with debugging, tuning, and...
I want to discuss some of the common mistakes that programmers make when starting to learn machine learning.
The use cases of machine learning to real world problems keeps growing as ML/AI sees increased adoption across industries. Let's take of tour of the...
Not all Data Science projects that get kicked-off see the light of day. Let's understand the common reasons why machine learning projects may fail.
Understand the formula behind linear regression coefficients (alpha and beta). Step-by-step derivation with examples for simple linear regression.
Let's understand what linear regression is all about from a non-technical perspective, before we get into the details, we will first understand from...
Explore Nebullvm, an open-source library that optimizes deep learning models to run 5-20x faster. Includes installation, benchmarks, and supported...
Simulated annealing algorithm is a global search optimization algorithm that is inspired by the annealing technique in metallurgy. Understand the...
Learn how Gradient Boosting builds strong predictors by combining many weak learners sequentially. Understand the algorithm, math, and how to prevent...
Bias Variance Tradeoff represents a machine learning model's performance based on how accurate it is and how well it generalizes on new dataset
Gradient boosting works by building weak prediction models sequentially where each model tries to predict the error left over by the previous model.
Portfolio optimization in finance is the process of creating a portfolio of assets, which maximizes return and minimizes risk.
Understand PCA, the math, concept, and Python implementation. Learn how Principal Component Analysis reduces dimensions while preserving maximum...
Discover 10 powerful feature selection techniques in R including Boruta, Lasso, stepwise selection, and variable importance to build better...
Using caret package, you can build all sorts of machine learning models. In this tutorial, I explain the core features of the caret package and walk...
Computing just the accuracy to evaluate a classification model is not enough. This tutorial shows how to build and interpret the evaluation metrics.
Learn the concepts behind logistic regression, its purpose and how it works. This is a simplified tutorial with example codes in R. Logistic...
Learn how to implement linear regression in R, its purpose, when to use and how to interpret the results of linear regression, such as R-Squared, P...
Learn the K-Means clustering algorithm from scratch. Covers the math, step-by-step implementation in Python, the Elbow method, and real-world...
Understand how the Naive Bayes algorithm works with a step-by-step example. Covers Bayes Theorem, Laplace correction, Gaussian Naive Bayes, and full...
Learn CUDA Programming to implement large scale parallel computing in GPU from Scratch. Understand concepts and underlying principles.
In this one, let's see how to view a list of all virtual environments in conda. Conda is a popular package management system that allows you to...
Let's see how to delete conda environment. If you no longer need an environment, you can delete it to free up disk space and simplify your...
Learn what Population Stability Index (PSI) is and how to use it for model monitoring. Understand the formula, interpretation, and Python...
FRUFS is model agnostic and is unsupervised, which means that Y does not have a role to play in identifying the features importance.
understand the steps to deploy your ML model app in Amazon EC2 service. This guide is meant to serve as a walk through with full explanation of how...
Learn how to create, manage, and delete conda virtual environments. Covers conda create, activate, deactivate, list, clone, and best practices for...
Fine-tune LLMs with LoRA and QLoRA in Python. Complete guide covering memory math, PEFT setup, 4-bit QLoRA, adapter merging, and common mistakes...
Learn how to fine-tune large language models with LoRA in Python using PEFT and TRL, covers LoraConfig, QLoRA, SFTTrainer, model merging, and common...
Learn how to implement a simple linear regression in Tensorflow 2.0 using the Gradient Tape API very clearly.
tf.function is a decorator function provided by Tensorflow 2.0 that converts regular python code to a callable Tensorflow graph function, which is...
Compare the deep learning frameworks: Tensorflow vs Pytorch. We will go into the details behind how TensorFlow 1.x, TensorFlow 2.0 and PyTorch...