Python Code - Machine Learning Tutorials and Recipes
Topic
Machine Learning Tutorials
Learn how to build machine learning and deep learning models for many purposes in Python using popular frameworks such as TensorFlow, PyTorch, Keras and OpenCV.
How AI Text Detection Works: The Technology Behind Modern AI Detectors
Learn how AI text detection works, from text preprocessing and feature extraction to transformer models and sentence-level analysis, and why AI detectors are still imperfect.
Beyond Guesswork: How Python Helps Identify AI-Generated Text
Learn how to detect AI-generated text in Python using preprocessing, feature extraction, and a scikit-learn classifier that estimates whether a document was written by a human or a machine.
How to Generate and Visualize Text Embeddings in Python
Learn how text embeddings work in Python using Sentence Transformers. Generate embeddings, compare semantic similarity, and visualize the embedding space with PCA, t-SNE, heatmaps, and dimension analysis.
How to Build a Semantic Search Engine with FAISS and Sentence Transformers in Python
Build a fully local semantic search engine in Python using FAISS and Sentence Transformers. Learn how embeddings work, index vectors, run semantic queries, and visualize the embedding space with PCA.
Automated Pothole Detection Using YOLO in Python
Learn how to build an automated pothole detection system using YOLOv5. This step-by-step tutorial covers environment setup, model training with a custom dataset, and running inference for real-time detection on images.
Build an MCP Server in Python with FastMCP
Build a real MCP server and client in Python using FastMCP. Implement a Todo Manager with tools, resources, and prompts, test it programmatically, then wire it into Claude Desktop, VS Code, and Cursor. Includes simple production deployment tips.
Building an Advanced Audiobook Generator with Python and ElevenLabs TTS
Learn to create professional audiobooks in Python with ElevenLabs' AI text-to-speech, covering setup, voice options, and full generation.
Building a Full-Stack RAG Chatbot with FastAPI, OpenAI, and Streamlit
Learn to build a full-stack RAG chatbot with FastAPI, OpenAI, and Streamlit. Step-by-step guide to create a chatbot answering questions from uploaded PDFs.
YouTube Video Transcription Summarization with Python
Learn how to transcribe and summarize YouTube videos using Python! This tutorial covers extracting video transcripts with YouTubeTranscriptApi, processing text with NLTK, and generating AI-powered summaries using OpenRouter's Mistral model.
3 Best Online AI Code Generators
Explore the top 3 AI code generators -- CodeConvert, ZZZ Code AI, and CodingFleet. Compare their features, pros, and cons to find the best tool for your coding needs, with CodingFleet leading for its advanced features and versatility.
How to Make a Facial Recognition System in Python
Master Python facial recognition with our step-by-step tutorial. Build real-time and image upload systems to identify faces with precision. Essential for security, attendance, and more. Perfect for beginners. Dive into the biometric tech world now!
Real-Time Vehicle Detection, Tracking and Counting in Python
Learn how to perform vehicle detection, tracking and counting with YOLOv8 and DeepSORT using OpenCV library in Python.
How to Upscale Images using Stable Diffusion in Python
Learn how to use stable diffusion 4x upscaler to upscale your low-resolution images into high quality images with Huggingface transformers and diffusers libraries in Python.
How to Edit Images using InstructPix2Pix in Python
Learn how you can edit and style images using Instruct-Pix2Pix with the help of Huggingface diffusers and transformers libraries in Python.
How to Control Generated Images by Diffusion Models via ControlNet in Python
Learn how you can control images generated by stable diffusion using ControlNet with the help of Huggingface transformers and diffusers libraries in Python.
Visual Question Answering with Transformers in Python
Learn the current state-of-the-art models (such as BLIP, GIT, and BLIP2) for visual question answering with huggingface transformers library in Python.