HomeGen AI ML Master

Gen AI ML Master

A Complete Guide to Matrices for Machine Learning with Python

Matrices are a key concept not only in linear algebra but also with regard to their prominent application and use in machine learning (ML) and data science.

Text Generation using Contrastive Search with GPT-2 Model

This tutorial is in four parts; they are: • The Core Text Generation Implementation • Contrastive Search: What are the Parameters in Text Generation? • Batch Processing and Padding • Tips for Better Generation Results Let's start with a basic implementation that demonstrates the...

10 Python One-Liners That Will Boost Your Data Preparation Workflow

Data preparation is a step within the data project lifecycle where we prepare the raw data for subsequent processes, such as data analysis and machine learning modeling.

Building LLM Applications with Hugging Face Endpoints and FastAPI

FastAPI is a modern and high-performance compliant web framework for building APIs with Python.

Diagnosing and Fixing Overfitting in Machine Learning with Python

Overfitting is one of the most (if not the most!) common problems encountered when building machine learning (ML) models.

Text Summarization with DistillBart Model

This tutorial is in two parts; they are: • Using DistilBart for Summarization • Improving the Summarization Process Let's start with a fundamental implementation that demonstrates the key concepts of text summarization with DistilBart: import torch from transformers import AutoTokenizer, AutoModelForSeq2SeqLM class TextSummarizer: def...