聚类算法运行与数据分组
running-clustering-algorithms
执行聚类算法(K-means、DBSCAN、层次聚类)以识别数据分组。 当请求“运行聚类”“聚类分析”或“数据点分组”时触发使用。
- License 许可
- MIT
- 最近更新
- 2025-12-18
- Stars
- ★ 29
- Forks
- 9
01 前言 Front Matter
- name
- running-clustering-algorithms
- license
- MIT
- description
- Execute clustering algorithms (K-means, DBSCAN, hierarchical) to identify data groups. Use when requesting "run clustering", "cluster analysis", or "group data points".
- allowed-tools
- Read, Write, Edit, Grep, Glob, Bash
02 资源文件 73
- 其他.build-trigger24 B
- 其他articles/.gitkeep—
- 参考文档articles/2026-fifa-world-cup-knockout-stage-approaches.md4.9 KB
- 参考文档articles/2026-world-cup-usa-journey.md5.4 KB
- 参考文档articles/argentina-spain-world-cup-2026-final-preview.md4.6 KB
- 参考文档articles/atlanta-fifa-fan-festival-guide.md4.9 KB
- 参考文档articles/atlanta-fifa-fan-festival-tips-2.md4.8 KB
- 参考文档articles/atlanta-fifa-fan-festival-tips.md4.8 KB
- 参考文档articles/australia-u15-national-select-squad-2026.md4.6 KB
- 参考文档articles/b-c-stars-canada-u17-womens-world-cup-squad.md4.3 KB
- 参考文档articles/belgium-fifa-training-facility-drama-world-cup-2026.md4.9 KB
- 参考文档articles/brazil-womens-u20-world-cup-poland-arrival.md4.2 KB
- 参考文档articles/carabao-cup-fourth-round-draw-fleetwood-arsenal-liverpool-chelsea.md6.7 KB
- 参考文档articles/countries-with-most-ballon-dor-wins.md5.7 KB
- 参考文档articles/egypts-controversial-exit-world-cup-2026.md5.3 KB
- 参考文档articles/england-u20-womens-world-cup-squad-2026.md4.6 KB
- 参考文档articles/erling-haaland-jersey-collection-world-cup.md4.4 KB
- 参考文档articles/fifa-fan-festival-atlanta-tips.md5.2 KB
- 参考文档articles/fifa-morocco-six-city-inspection-2030-world-cup.md4.5 KB
- 参考文档articles/fifa-u20-womens-world-cup-scheduling-change.md5.0 KB
- 参考文档articles/fifa-world-cup-2026-explained.md5.2 KB
- 参考文档articles/fifa-world-cup-2026-standings-matches.md6.0 KB
- 参考文档articles/fifa-world-cup-2026-updates.md5.4 KB
- 参考文档articles/fpl-gameweek-1-must-own-players-2026.md3.3 KB
- 参考文档articles/future-soccer-stars-fifa-u17-world-cup-2026-qatar.md4.6 KB
- 参考文档articles/future-womens-soccer-u20-world-cup-challenges.md4.7 KB
- 参考文档articles/how-to-stream-2026-fiba-womens-world-cup.md4.9 KB
- 参考文档articles/how-to-watch-2026-fifa-world-cup-free-streaming.md5.3 KB
- 参考文档articles/how-to-watch-fifa-world-cup-2026-live-fox-sports.md5.9 KB
- 参考文档articles/how-to-watch-new-zealand-vs-egypt-2026-world-cup.md4.7 KB
- 参考文档articles/india-panama-friendly-test-world-cup.md3.6 KB
- 参考文档articles/iran-belgium-0-0-draw-usmnt-world-cup-path-group-g.md5.8 KB
- 参考文档articles/irans-world-cup-struggles-political-vs-sportsmanship-2026.md5.2 KB
- 参考文档articles/irans-world-cup-victory-draw-against-belgium.md5.5 KB
- 参考文档articles/israel-vs-ireland-symbolic-protest.md5.0 KB
- 参考文档articles/k-league-all-stars-manchester-city-preview.md4.1 KB
- 参考文档articles/kenya-japan-u17-womens-world-cup-round-of-16.md4.9 KB
- 参考文档articles/kenya-u17-womens-world-cup-provisional-squad.md4.0 KB
- 参考文档articles/last-minute-2026-world-cup-tickets-guide.md5.9 KB
- 参考文档articles/man-city-ahead-of-barcelona-club-rankings.md5.1 KB
- 参考文档articles/messi-argentina-career-moments-guide.md4.8 KB
- 参考文档articles/metlife-stadium-world-cup-pitch-concerns.md5.4 KB
- 参考文档articles/netflix-spanish-broadcasting-rights-2030-world-cup.md5.6 KB
- 参考文档articles/new-england-revolution-st-louis-city-2026-mls-cup-contenders.md3.9 KB
- 参考文档articles/omar-artan-uefa-super-cup-after-world-cup-setback.md4.0 KB
- 参考文档articles/portugal-vs-spain-2026-world-cup.md5.0 KB
- 参考文档articles/premier-league-support-guide-us-fans.md5.5 KB
- 参考文档articles/turkiye-replace-coach-what-it-means.md5.8 KB
- 参考文档articles/usa-vs-belgium-2026-world-cup-showdown.md5.4 KB
- 参考文档articles/usa-vs-belgium-free-live-stream-world-cup-2026.md5.0 KB
- 参考文档articles/usa-vs-canada-friendly-how-to-watch.md5.3 KB
- 参考文档articles/usmnt-september-october-schedule-2030-world-cup-cycle.md7.2 KB
- 参考文档articles/usmnt-world-cup-deep-run-2026.md5.1 KB
- 参考文档articles/watch-usa-bosnia-herzegovina-stream-2026-world-cup.md4.4 KB
- 参考文档articles/world-cup-2026-fan-zones.md4.4 KB
- 参考文档articles/world-cup-2026-mexico-south-korea-canada-qatar-predictions.md4.8 KB
- 参考文档articles/world-cup-2026-predictions-mexico-canada.md4.8 KB
- 参考文档articles/world-cup-2026-predictions-mexico-south-korea-canada-qatar.md5.6 KB
- 参考文档articles/world-cup-2026-preview-mexico-canada.md5.2 KB
- 资产文件assets/.gitkeep—
- 资产文件assets/clustering_visualization.ipynb3.5 KB
- 资产文件assets/config_template.json2.7 KB
- 资产文件assets/example_data.csv865 B
- 资产文件assets/README.md377 B
- 参考文档dedup-index.json13.8 KB
- 参考文档references/README.md671 B
- 脚本scripts/cluster_evaluator.py2.9 KB
- 脚本scripts/data_loader.py2.9 KB
- 脚本scripts/README.md626 B
- 脚本scripts/run_dbscan.py2.8 KB
- 脚本scripts/run_hierarchical.py2.8 KB
- 脚本scripts/run_kmeans.py2.8 KB
- 参考文档site.yaml5.3 KB
03 SKILL.md 正文
Overview
This skill empowers Claude to perform clustering analysis on provided datasets. It allows for automated execution of various clustering algorithms, providing insights into data groupings and structures.
How It Works
- Analyzing the Context: Claude analyzes the user's request to determine the dataset, desired clustering algorithm (if specified), and any specific requirements.
- Generating Code: Claude generates Python code using appropriate ML libraries (e.g., scikit-learn) to perform the clustering task, including data loading, preprocessing, algorithm execution, and result visualization.
- Executing Clustering: The generated code is executed, and the clustering algorithm is applied to the dataset.
- Providing Results: Claude presents the results, including cluster assignments, performance metrics (e.g., silhouette score, Davies-Bouldin index), and visualizations (e.g., scatter plots with cluster labels).
When to Use This Skill
This skill activates when you need to:
- Identify distinct groups within a dataset.
- Perform a cluster analysis to understand data structure.
- Run K-means, DBSCAN, or hierarchical clustering on a given dataset.
Examples
Example 1: Customer Segmentation
User request: "Run clustering on this customer data to identify customer segments. The data is in customer_data.csv."
The skill will:
- Load the customer_data.csv dataset.
- Perform K-means clustering to identify distinct customer segments based on their attributes.
- Provide a visualization of the customer segments and their characteristics.
Example 2: Anomaly Detection
User request: "Perform DBSCAN clustering on this network traffic data to identify anomalies. The data is available at network_traffic.txt."
The skill will:
- Load the network_traffic.txt dataset.
- Perform DBSCAN clustering to identify outliers representing anomalous network traffic.
- Report the identified anomalies and their characteristics.
Best Practices
- Data Preprocessing: Always preprocess the data (e.g., scaling, normalization) before applying clustering algorithms to improve performance and accuracy.
- Algorithm Selection: Choose the appropriate clustering algorithm based on the data characteristics and the desired outcome. K-means is suitable for spherical clusters, while DBSCAN is better for non-spherical clusters and anomaly detection.
- Parameter Tuning: Tune the parameters of the clustering algorithm (e.g., number of clusters in K-means, epsilon and min_samples in DBSCAN) to optimize the results.
Integration
This skill can be integrated with data loading skills to retrieve datasets from various sources. It can also be combined with visualization skills to generate insightful visualizations of the clustering results.
04 同仓库更多 Skills
UI 视觉回归测试
testing-visual-regression
使用截图比较检测 UI 组件中的视觉变化。 在检测意外的 UI 更改或像素差异时使用。 用“测试视觉变化”、“比较截图”或“检测 UI 回归”等短语触发。
单元测试自动生成
generating-unit-tests
从源代码自动生成全面的单元测试,覆盖正常路径、边界条件和错误情况。 在为函数、类或模块创建测试覆盖时使用。 用“生成单元测试”、“为…创建测试”或“添加测试覆盖”等短语触发。
测试报告生成与可视化
generating-test-reports
生成包含指标、覆盖率和可视化内容的全面测试报告。 在执行专项测试时使用。 用“生成测试报告”、“创建测试文档”或“显示测试指标”等短语触发。
测试执行编排与协调
orchestrating-test-execution
协调跨多个环境和框架的并行测试执行。 在执行专项测试时使用。 用“编排测试”、“运行并行测试”或“协调测试执行”等短语触发。
managing-test-environments
Provision and manage isolated test environments with configuration and data. Use when performing specialized testing. Trigger with phrases like "manage test environment", "provision test env", or "setup test infrastructure".
generating-test-doubles
Generate mocks, stubs, spies, and fakes for dependency isolation. Use when creating mocks, stubs, or test isolation fixtures. Trigger with phrases like "generate mocks", "create test doubles", or "setup stubs".