惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V2EX - 技术
V2EX - 技术
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Threat Research - Cisco Blogs
T
The Exploit Database - CXSecurity.com
S
Schneier on Security
S
Securelist
P
Privacy & Cybersecurity Law Blog
Scott Helme
Scott Helme
T
Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
L
LINUX DO - 热门话题
Cyberwarzone
Cyberwarzone
Cisco Talos Blog
Cisco Talos Blog
量子位
博客园 - Franky
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Latest news
Latest news
T
Troy Hunt's Blog
N
News | PayPal Newsroom
Google Online Security Blog
Google Online Security Blog
Apple Machine Learning Research
Apple Machine Learning Research
N
Netflix TechBlog - Medium
小众软件
小众软件
P
Palo Alto Networks Blog
Spread Privacy
Spread Privacy
C
Cyber Attacks, Cyber Crime and Cyber Security
C
Check Point Blog
aimingoo的专栏
aimingoo的专栏
WordPress大学
WordPress大学
L
Lohrmann on Cybersecurity
L
LINUX DO - 最新话题
D
Darknet – Hacking Tools, Hacker News & Cyber Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Last Watchdog
The Last Watchdog
S
Security @ Cisco Blogs
P
Privacy International News Feed
Last Week in AI
Last Week in AI
Microsoft Security Blog
Microsoft Security Blog
T
Tailwind CSS Blog
博客园_首页
云风的 BLOG
云风的 BLOG
V
Vulnerabilities – Threatpost
D
DataBreaches.Net
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
罗磊的独立博客
Engineering at Meta
Engineering at Meta
Forbes - Security
Forbes - Security
T
Tenable Blog

GoPenAI - Medium

Group Relative Policy Optimization (GRPO) Your agent fleet can build trustworthy state with their own keys Epistemic Backbone #1: Why AI Systems Need Shared Memory, Not Just Models Transformers Beyond NLP: Fun and Trendy Use Cases Your First Transformer: The Road to Attention Part 4. From Seats to Agents: Early Evidence on the Future of Work in the Agentic AI Era The AI Trust Gap: Why Faster Code Is Creating Less Confidence From Bytes to BPE: A From-Scratch Tour of LLM Tokenization ️ Grok Voice Think Fast 1.0: The First Voice AI That Actually Thinks While Talking .NET 10.0.7 OOB Security Update: The Kind of Bug You Can’t Afford to Ignore Writing Custom Pallas Kernels for vLLM on TPU — A Step-by-Step Guide Contrastive Learning Day 39: Advanced Ensemble Learning Techniques — Stacking, Random Forest, AdaBoost, and Gradient… Localization: Beyond Translation, Into the Territory of Growth Hacking Can We Translate Our Sentiments? Training the first modern architecture encoder for South Slavic languages What Is Data, and Why Does It Matter for AI? A Complete Guide to Prompt Engineering: Best Practices & Tips DeepSeek TileKernels: The Hidden Tech Making AI Models Insanely Fast Can AI Growth Really Become Economic Growth? Evaluating API Test Generation Across Leading AI Tools Pin Clustering in .NET MAUI Maps: Finally Making Maps Usable (With Example) What is an LLM? Tokens, Context Window, and Why They Matter Build a reactive AI agent harness — Part 1. Conversation. From Hallucination to Citation… RAG Made Simple: How AI Finds the Right Answers CLI Coding Agents Tierlist Google Deep Research Max: Build Autonomous AI Research Agents Hermes Agent vs Every AI Assistant: Why Memory Changes Everything I Watched a Startup Burn $1,200 in a Week. The Culprit Was 800 Tokens. Fine-Tuning LLMs Explained: How Companies Teach AI to Think Like Them ️ xAI Just Dropped the Fastest Voice AI Ever Essential Code Patterns in Generative Artificial Intelligence Exploratory Data Analysis: A basic Understanding Day 36: Introduction to Ensemble Learning — Why Multiple Models Perform Better than One Concept to build a Student IQ — Agent Framework Workflow + Microsoft Foundry Agents 20 API Concepts Every Software Engineer Should Know From Human-Feedback Control to Declared No-Meta Agency: A Scientific Exposition GPT-5.5 Is Here — And It’s Not Just Smarter… It Works For You Test Cases in Data Science Projects: A Basic Understanding Q, K, V: The Three Matrices That Quietly Run Every Modern LLM Artificial Intelligence UseCases in Testing A Comprehensive Guide for Beginners into Artificial Intelligence Day 33: DBSCAN — Clustering Beyond Boundaries The Attention Breakthrough — How Language Models Finally Learned to Focus I rebuilt Strava (and Strava Premium) for fun, and now I want your feedback .NET April 2026 Updates: The Kind of Release You Should Never Ignore .NET 11 Preview 3: Small Changes That Quietly Improve Everything ChatGPT Images 2.0 Isn’t an Update — It’s a Revolution Claude Mythos: The AI Model Too Powerful to Release Basic Understanding of Key Parameters: Artificial Intelligence Part-2 Kimi K2.6: The Most Powerful Open-Source LLM Is Here (And It’s Not What You Expect) Elephant in the room — Openrouter’s Elephant-Alpha I Built a RAG System From Scratch in 4 Weeks — Here’s Everything I Learned Graphify: Build a Knowledge Graph From Your Entire Codebase — Without Sending Your Code to Anyone Deep Learning Interview Q&A Part -1 Deep Learning Interview Q&A Part -2 Anthropic Just Launched Claude Routines Microsoft Just Dropped a Cheaper AI Image Model — And This Changes Everything Building a Local-first Knowledge Management System with LLM and Obsidian Basic Understanding of Key Parameters: Artificial Intelligence Part-1 Copy These 7 Prompt Formulas and Never Struggle With AI Again Claude Opus 4.7 vs Mythos — The Benchmark Truth Nobody Explains The ROI on Reading is Broken. I Built an AI Learning OS to Fix It Beyond Scatter: Metrics That Allows to Measure Creativity in LLMs. Banish the RNN: The Road To Attention Part 3. You Typed a Few Words. The AI Painted a World. Here’s Exactly How. 46% of Code Is Now AI-Generated. The Other 54% Is the Part That Will Get You Fired. Claude Opus 4.7: The Quiet Leap Toward Autonomous AI Workflows Is bitnet.cpp the Game Changer for Running LLMs on Your Laptop? Machine Learning Algorithms : A Comprehensive Guide Building REPI (Real Estate Pain Point Intelligence Platform) — From Scraping 5 Noisy Data Sources… Hermes Agent: The AI That Actually Remembers You (Not Another OpenClaw) MiniMax M2.7 Just Went Open-Weight — Run a Powerful AI Agent on Your Own Machine XML Is Everywhere — You Just Never Noticed It The Missing Infrastructure for GUI Agents: Unpacking the ClawGUI Framework Wayfarer: Building an AI-Powered Travel Intelligence Platform with Agentic Orchestration, Bayesian… Attention from First Principles: DeltaNet Project Glasswing and Claude Mythos Preview: Anthropic’s Bet on AI-Powered Cyber Defense Deep Learning-Based Binary Classification of Forest Fires GenAI Q and A Interview Questions Part -2 How Google Maps Knows There Is Traffic Before You Even Reach There 5 AI Freelance Services Clients Actually Pay For I Accidentally Built a World Where AIs Govern Themselves (And I Have No Idea What’s Happening… Meta’s “Compute Desk” Is the Tell: When AI Stops Being Software and Becomes Resource Strategy The Last Human Stronghold Falls: Inside the GrandCode Multi-Agent System ASP.NET Core 2.3 End of Support: What It Really Means for Developers Andrej Karpathy’s LLM Wiki: The Idea That Could Kill RAG Forever I Built an Open-Source Kubernetes Control Plane for AI Agents. Here’s What It Took. GLM-5.1 Just Changed Coding Forever — The AI That Gets Smarter the Longer It Works Goodbye Llama? Meta Just Dropped Muse Spark — And It Changes Everything Anthropic Accidentally Leaked All of Claude Code’s Source Code Stop Sending Your Data to the Cloud — Build This Instead Today Physical AI Cosmos Reason2 2B World Model inference in Azure Machine Learning LangChain vs LlamaIndex vs LangGraph: The Difference Nobody Explains Clearly Cloud Services Interview Q and A Part- 1 Cloud Services Interview Q and A Part- 2 Gemma-4 — disabling thinking with gemma-4–26b-a4b-it Mixture of Experts Explained: The Secret Architecture Making AI 10x Smarter Without Using 10x More… Diffusion Models Demystified: How AI Paints Masterpieces from Pure Noise (No Math Needed)
Unsupervised Learning
Kalyani Kris · 2026-04-30 · via GoPenAI - Medium
Contents Dimensionality reduction Clustering Dimensionality reduction What is Dimensionality Reduction? Dimensionality reduction is the process of reducing the number of features or variables (also called dimensions) in a dataset, while retaining as much important information as possible. In simple terms, it means taking a dataset with many columns (features) and transforming it into one with fewer columns, without losing the core patterns or structure of the data. Why is Dimensionality Reduction Done? 1. Simplify the Model — faster to train and easier to interpret. 2. Reduce Overfitting — Too many features can cause models to memorize the training data 3. Improve Performance — Reduces computational cost: less memory, faster training and prediction. 4. Visualization — You can’t visualize data with 100 dimensions. Principal component Analysis Principal Component Analysis (PCA) is a technique used in dimensionality reduction. It helps to simplify complex datasets by reducing the number of variables (dimensions) while retaining the most important information. PCA is especially useful when there are strong correlations among variables — in such cases, reducing dimensions helps eliminate redundancy. Goal : to reduce the dimensions and identify patterns in data Core Idea: PCA works by finding the directions (principal components) in which the data varies the most. It then projects the original data onto a new set of axes formed by these components. These principal components are uncorrelated, and each one captures as much variance as possible: PC1 captures the most variance. PC2 captures the next most (and is orthogonal to PC1), and so on. If your data is 10-dimensional, PCA will give you 10 components. But often, just the first 2–3 components explain most of the variance. Steps of PCA Standardize the data Scale each feature so that it has a mean of 0 and a standard deviation of Compute the Covariance Matrix This matrix shows how features vary with each other — i.e., how strongly they are correlated. Find Eigenvalues and Eigenvectors Eigenvectors give the directions of the new feature space (principal components). Eigenvalues indicate how much variance each component captures. Create the Feature Vector Select the top k eigenvectors corresponding to the k largest eigenvalues. Recast the Data Multiply the original data by the feature vector to project it onto the new lower-dimensional space. Principal Components These components are linear combinations of the original features They are ordered by how much variance (information) they capture. The first component captures the most variance, the second captures the next most, and so on. A scree plot helps visualize the eigenvalues of each principal component. It shows how much variance each component captures. Clustering Clustering is an unsupervised learning technique used to group similar data points together based on their characteristics — without using predefined labels. The goal is to discover the natural structure or patterns in data. Each group formed is called a cluster, and data points in the same cluster are more similar to each other than to those in other clusters. Why Use Clustering? To find hidden patterns or groupings in data. To segment customers in marketing (e.g., by behavior, demographics). To detect anomalies (outliers often don’t belong to any cluster). To compress data by summarizing with cluster centers. To preprocess data for other tasks (like classification). K-Means Clustering K-Means is a partitional clustering algorithm that: Divides the dataset into k distinct clusters and Each cluster is represented by a centroid (center point) How the K-Means Algorithm Works Choose the number of clusters (k): The value of k is set by the user. Initialize centroids: Randomly select k points to serve as initial centroids (they don’t have to be data points). Assign data points to the nearest centroid: Each point is assigned to the cluster whose centroid is closest (based on distance, usually Euclidean). Compute new centroids: For each cluster, compute the mean of all the data points in that cluster to get the new centroid. Reassign points: Reassign each data point to the nearest new centroid. If any reassignment occurs, go back to step 4. If no changes happen, the algorithm converges , and clustering is complete. Choosing the Right Number of Clusters Choosing the optimal k is crucial. One popular method is using WCSS (Within-Cluster Sum of Squares). Elbow Method (Elbow Plateau Diagram) To find the optimal k : Run K-Means for a range of k values (e.g., 1 to 10) Calculate WCSS for each k Plot k vs. WCSS Look for the “elbow point” — where the rate of decrease sharply slows down This elbow point represents a balance between: Too few clusters (high WCSS, underfitting) Too many clusters (low WCSS, but possibly overfitting or unnecessary complexity) Spectral Clustering Traditional clustering algorithms like K-Means work well for spherical or convex clusters, but fail with non-convex, complex-shaped, or intertwined data (e.g., spirals). Spectral Clustering is designed to handle such cases by using graph theory and the spectrum (eigenvalues) of a matrix derived from the data. Key Advantages Makes no assumptions about the shape of the clusters. Works well for non-linearly separable data . Can cluster intertwined or overlapping structures better than K-Means. Spectral Clustering Process Step 1: Construct a Similarity Graph Represent data as a graph where: Each data point is a node . An edge connects each point to its k-nearest neighbors (K-NN) . The similarity (or weight of the edge) could be binary (connected or not) or based on distance (e.g., using a Gaussian kernel). Example: If you have 6 data points and set k = 2, the graph connects each point to its 2 closest points. Step 2: Spectral Embedding via Laplacian Matrix Construct the adjacency matrix (A) for the graph. Compute the degree matrix (D) — a diagonal matrix where each entry is the number of connections for that node. Compute the Laplacian matrix (L) : L=D−A Perform eigendecomposition on L . Use the eigenvector corresponding to the 2nd smallest eigenvalue (called the Fiedler vector ) to bi-partition the graph. For more than 2 clusters, use multiple eigenvectors (e.g., top k eigenvectors with smallest non-zero eigenvalues). Step 3: Apply Classical Clustering (e.g., K-Means) The selected eigenvectors transform the original data into a lower-dimensional space (spectral embedding). Run K-Means on this transformed data to produce the final clusters. Why Use the 2nd Smallest Eigenvalue? The smallest eigenvalue of a graph Laplacian is always zero (for a connected graph). The second smallest eigenvalue reflects how well the graph can be partitioned into two groups . Its corresponding eigenvector (Fiedler vector) provides a natural separation of data. Hierarchial Clustering Hierarchical clustering is an unsupervised machine learning algorithm used to group unlabeled data into clusters. Unlike K-Means clustering, it builds a tree-like structure of clusters using dendrograms to represent the hierarchy among data points. Dendrograms : A dendrogram is a tree-like diagram that records the merging process of clusters. X-axis : data points or features Y-axis : Euclidean distance between clusters You can cut the dendrogram at a chosen height to determine the number of clusters. Types of Hierarchical Clustering: Agglomerative Clustering (Bottom-up) Starts with each data point as its own cluster (singleton cluster). Compute a distance matrix based on all pairs of points Iteratively merges the two closest clusters based on minimum distance. Update distance matrix after each merge. Ends when all data points are merged into a single cluster. Divisive Clustering (Top-down) Starts with one large cluster. Recursively splits it into smaller clusters. Continues until each data point is its own cluster or a stopping criterion is met. Less commonly used due to its computational complexity Silhouette Score — Evaluating Clusters The silhouette score measures how well each data point fits within its assigned cluster: Where: a(i): average distance between point i and all other points in the same cluster. b(i): minimum average distance from point i to all points in other clusters. Interpretation of Silhouette Score: +1: Well-matched to its own cluster 0: On the boundary between two clusters –1: Poorly clustered Unsupervised Learning was originally published in GoPenAI on Medium, where people are continuing the conversation by highlighting and responding to this story.