<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>Python-Unleashed</title><description>Articles to help readers master Python, machine learning, and AI techniques, with algorithms built from scratch and the math worked out step by step.</description><link>https://www.python-unleashed.com/</link><item><title>GPT2 From Scratch</title><link>https://www.python-unleashed.com/post/gpt2-from-scratch/</link><guid isPermaLink="true">https://www.python-unleashed.com/post/gpt2-from-scratch/</guid><description>In a previous post I coded the transformer from scratch and trained it to translate English to Italian. In this blog post I will code GPT2 and train to generate text…</description><pubDate>Sat, 29 Mar 2025 00:00:00 GMT</pubDate></item><item><title>Generalized Linear Models</title><link>https://www.python-unleashed.com/post/generalized-linear-models/</link><guid isPermaLink="true">https://www.python-unleashed.com/post/generalized-linear-models/</guid><description>Generalized Linear Models (GLMs) were introduced by Robert Wedderburn in 1972 and provide a unified framework for modeling data originating from the exponential family…</description><pubDate>Thu, 27 Mar 2025 00:00:00 GMT</pubDate></item><item><title>Transformer from Scratch</title><link>https://www.python-unleashed.com/post/transformer-from-scratch/</link><guid isPermaLink="true">https://www.python-unleashed.com/post/transformer-from-scratch/</guid><description>In this blog post I will code the Transformer model from scratch and trained to translate English to Italian. The code can be found HERE.</description><pubDate>Fri, 14 Feb 2025 00:00:00 GMT</pubDate></item><item><title>Hierarchical Clustering From Scratch</title><link>https://www.python-unleashed.com/post/hierarchical-clustering-from-scratch/</link><guid isPermaLink="true">https://www.python-unleashed.com/post/hierarchical-clustering-from-scratch/</guid><description>In this article I will walk you through the implementation of the hierarchical clustering method. The code can be found HERE. Hierarchical clustering is a method of…</description><pubDate>Tue, 24 Dec 2024 00:00:00 GMT</pubDate></item><item><title>Ordinary Least Square: Closed Form Solution &amp; Gradient Descent</title><link>https://www.python-unleashed.com/post/ordinary-least-square-ols/</link><guid isPermaLink="true">https://www.python-unleashed.com/post/ordinary-least-square-ols/</guid><description>The Jupyter Notebook for this article can be found HERE.</description><pubDate>Sat, 09 Nov 2024 00:00:00 GMT</pubDate></item><item><title>Simulated Annealing</title><link>https://www.python-unleashed.com/post/simulated-annealing/</link><guid isPermaLink="true">https://www.python-unleashed.com/post/simulated-annealing/</guid><description>Simulated annealing is a well-established metaheuristic, physics-based method that seeks the parameters of a model that maximize (or minimize) the model&apos;s objective…</description><pubDate>Sat, 15 Jan 2022 00:00:00 GMT</pubDate></item><item><title>Simple and Steepest Ascent Hill Climbing</title><link>https://www.python-unleashed.com/post/simple-and-steepest-ascent-hill-climbing/</link><guid isPermaLink="true">https://www.python-unleashed.com/post/simple-and-steepest-ascent-hill-climbing/</guid><description>Hill climbing is one of the simplest metaheuristic optimization methods that, given a state space and an objective function to maximize (or minimize), tries to find a…</description><pubDate>Wed, 12 Jan 2022 00:00:00 GMT</pubDate></item><item><title>Python Conditionals</title><link>https://www.python-unleashed.com/post/conditionals/</link><guid isPermaLink="true">https://www.python-unleashed.com/post/conditionals/</guid><description>Conditionals, as the name suggests, allow the conditional execution of a statement or series of statements based on the values of a specific expression. Conditionals…</description><pubDate>Mon, 10 Jan 2022 00:00:00 GMT</pubDate></item><item><title>K-Means Clustering From Scratch</title><link>https://www.python-unleashed.com/post/k-means-clustering-from-scratch/</link><guid isPermaLink="true">https://www.python-unleashed.com/post/k-means-clustering-from-scratch/</guid><description>K-Means clustering is an unsupervised machine learning algorithm that seeks to group alike data points together. It aims to partition n observations into k clusters in…</description><pubDate>Thu, 06 Jan 2022 00:00:00 GMT</pubDate></item><item><title>Particle Swarm Optimization</title><link>https://www.python-unleashed.com/post/particle-swarm-optimization/</link><guid isPermaLink="true">https://www.python-unleashed.com/post/particle-swarm-optimization/</guid><description>PSO is a stochastic, population-based algorithms and utilizes a population of candidate solutions, named particles, that move around in the search-space seeking for the…</description><pubDate>Sun, 02 Jan 2022 00:00:00 GMT</pubDate></item><item><title>Logistic Regression From Scratch</title><link>https://www.python-unleashed.com/post/logistic-regression-from-scratch/</link><guid isPermaLink="true">https://www.python-unleashed.com/post/logistic-regression-from-scratch/</guid><description>Logistic regression is among the most famous classification algorithm. It is probably the first classifier that Data Scientists employ to establish a base model on a new…</description><pubDate>Fri, 31 Dec 2021 00:00:00 GMT</pubDate></item><item><title>SVM From Scratch</title><link>https://www.python-unleashed.com/post/svm-from-scratch/</link><guid isPermaLink="true">https://www.python-unleashed.com/post/svm-from-scratch/</guid><description>In this article I will walk you through every detail of the linear SVM classifier, from theory to implementation. The Jupyter Notebook can be found HERE.</description><pubDate>Tue, 28 Dec 2021 00:00:00 GMT</pubDate></item><item><title>SVM Margin Formula Derivation</title><link>https://www.python-unleashed.com/post/svm-margin-formula-derivation/</link><guid isPermaLink="true">https://www.python-unleashed.com/post/svm-margin-formula-derivation/</guid><description>When introduced to the SVM algorithm, we all came across the formula for the width of the margin:</description><pubDate>Tue, 28 Dec 2021 00:00:00 GMT</pubDate></item><item><title>Python Dictionaries</title><link>https://www.python-unleashed.com/post/python-dictionaries/</link><guid isPermaLink="true">https://www.python-unleashed.com/post/python-dictionaries/</guid><description>A Python dictionary is a data structure that stores items in the form of key-value pairs. The keys are unique and can only be string, numbers or tuples. Values can be…</description><pubDate>Sat, 25 Dec 2021 00:00:00 GMT</pubDate></item><item><title>Why Gradient Descent Works</title><link>https://www.python-unleashed.com/post/why-gradient-descent-works/</link><guid isPermaLink="true">https://www.python-unleashed.com/post/why-gradient-descent-works/</guid><description>Gradient descent is very well known optimization tool to estimate an algorithm&apos;s parameters minimizing the loss function. Often we don&apos;t not fully know the shape and…</description><pubDate>Sat, 25 Dec 2021 00:00:00 GMT</pubDate></item><item><title>Derivation of the Binary Cross Entropy Loss Gradient</title><link>https://www.python-unleashed.com/post/derivation-of-the-binary-cross-entropy-loss-gradient/</link><guid isPermaLink="true">https://www.python-unleashed.com/post/derivation-of-the-binary-cross-entropy-loss-gradient/</guid><description>The binary cross entropy loss function is the preferred loss function in binary classification tasks, and is utilized to estimate the value of the model&apos;s parameters…</description><pubDate>Fri, 24 Dec 2021 00:00:00 GMT</pubDate></item><item><title>Python Tuples</title><link>https://www.python-unleashed.com/post/python-tuples/</link><guid isPermaLink="true">https://www.python-unleashed.com/post/python-tuples/</guid><description>Tuples store multiple items in a single variable. Tuples are immutable: values inside a tuple cannot be updated or changed.</description><pubDate>Fri, 24 Dec 2021 00:00:00 GMT</pubDate></item><item><title>Python Basic Data Types</title><link>https://www.python-unleashed.com/post/python-basic-data-types/</link><guid isPermaLink="true">https://www.python-unleashed.com/post/python-basic-data-types/</guid><description>Integers are positive and negative integer numbers that are written without a fractional component. Basically, every number without a decimal point.</description><pubDate>Wed, 22 Dec 2021 00:00:00 GMT</pubDate></item><item><title>OLS Formula Derivation</title><link>https://www.python-unleashed.com/post/ols-formula-derivation/</link><guid isPermaLink="true">https://www.python-unleashed.com/post/ols-formula-derivation/</guid><description>OLS is most famous algorithm that estimates the parameters of a linear regression model. OLS minimizes the following loss function:</description><pubDate>Sun, 19 Dec 2021 00:00:00 GMT</pubDate></item><item><title>Linear Regression: Linear Regression Equation &amp; OLS</title><link>https://www.python-unleashed.com/post/linear-regression/</link><guid isPermaLink="true">https://www.python-unleashed.com/post/linear-regression/</guid><description>Linear regression is one of the oldest algorithm in machine learning. It is an approach for modelling the relationship between a variable y (aka response or dependent…</description><pubDate>Tue, 14 Dec 2021 00:00:00 GMT</pubDate></item><item><title>Python Sets</title><link>https://www.python-unleashed.com/post/python-sets/</link><guid isPermaLink="true">https://www.python-unleashed.com/post/python-sets/</guid><description>Sets are used to store multiple UNIQUE items in a single variable. Sets are unordered data structure.</description><pubDate>Sun, 12 Dec 2021 00:00:00 GMT</pubDate></item><item><title>Python Lists</title><link>https://www.python-unleashed.com/post/python-lists/</link><guid isPermaLink="true">https://www.python-unleashed.com/post/python-lists/</guid><description>Lists are probably the most widely used data structure in Python. Lists store multiple items in a single variable. Moreover, lists are ordered data structure: the order…</description><pubDate>Fri, 10 Dec 2021 00:00:00 GMT</pubDate></item></channel></rss>