DSR-240Research DSCODE

从零写 k-means:retail 销售数据存在矩阵 X(每列一周、每行一个商品),给定 K 个 cluster,返回每个商品的 cluster assignment

📋 题目详细背景与场景

There is a retail info table that has sale data stored in matrix X. Each column contains sale amount for week 1, week 2, , week n, and each row stores sale item, such as banana, apple and etc. Assuming there's K clusters, return cluster assignment for each sale item. Write k-mean function from scratch

📖 对应核心知识点手册:

想用苏格拉底式对话深入理解该考点的第一性原理?

进入破冰推演实验室,模拟考官互动并一步步拆解底层机制与直觉陷阱。

💬 针对本考点破冰 ➔
⚡
Test muscle memory on this topic via 3-Layer Flashcards
Active Recall: Mentally formulate Prompt ➔ Math Derivation ➔ Benchmark Implementation in 3 minutes.
🎯 Drill This Card Now➔