Scratch

How I Built an LLM-Based Game from Scratch

Part I: Game concepts and Causal Graphs for LLMsA number of months ago, I used to be debating with a friend concerning the use of Large Language Models (LLMs) in game design.My friend argued...

Implementing Easy Neural Network Backpropagation from Scratch

Solving XOR gate problem— using just NumPy, then compare with PyTorch implementation.Outline・Introduction to the XOR Gate Problem・Constructing a 2-Layer Neural Network・Forward Propagation・Chain Rules for Backpropagation・Implementation with NumPy・Comparing Results with PyTorch・Summary・ReferencesIntroduction to the XOR Gate...

A beginner’s guide to constructing a Retrieval Augmented Generation (RAG) application from scratch

Learn critical knowledge for constructing AI apps, in plain englishRetrieval Augmented Generation, or RAG, is all the craze nowadays since it introduces some serious capabilities to large language models like OpenAI’s GPT-4 — and...

Google DeepMind’s recent generative model makes Super Mario-like games from scratch

“It’s cool work,” says Matthew Gudzial, an AI researcher on the University of Alberta, who developed a similar game generator just a few years ago.  Genie was trained on 30,000 hours of...

Gaussian Processes from Scratch

Gain a deeper understanding of Gaussian processes by implementing them with only NumPy.Gaussian Processes (GPs) are an incredible class of models. There are only a few Machine Learning algorithms that offer you an accurate...

The Ultimate Guide to Training BERT from Scratch: The Tokenizer

From Text to Tokens: Your Step-by-Step Guide to BERT TokenizationBy the point you finish reading this text, you’ll not only understand the ins and outs of the BERT tokenizer, but you’ll even be equipped...

Dynamic Pricing with Reinforcement Learning from Scratch: Q-Learning

An introduction to Q-Learning with a practical Python exampleThe agent is the one selecting the course of actions. In the instance, the agent is the player who controls the joystick deciding the following move...

Implementing an ANN model from scratch using Numpy

// Importing required librariesimport numpy as np// Preparing datasetx = np.array(,,])y = np.array(,,])// Defining the activation function# Activation function # Here we have now used sigmoid function that provides the output between 0 and...

Recent posts

Popular categories

ASK ANA