Scikit-learn (classical ML)
暂无简介
- License 许可
- MIT
- 所属仓库
- rhCat/skillChip
- 最近更新
- 2026-07-31
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- Scikit-learn (classical ML)
- perks
- [ "classify", "optimal_k", "cluster_compare", "visualize" ]
- skill
- scikit-learn
02 资源文件 39
- 其他blueprint.drawio2.7 KB
- 参考文档blueprint.json3.5 KB
- 资产文件blueprint.svg8.9 KB
- 参考文档index.json4.2 KB
- 参考文档ledger.json359 B
- 许可证LICENSE.txt1.0 KB
- 参考文档perks.json1.1 KB
- 参考文档perks/classify/manifesto.json388 B
- 参考文档perks/classify/metadata.json1.1 KB
- 脚本perks/classify/src/classification_pipeline.py7.9 KB
- 脚本perks/classify/src/classify_cli.py2.3 KB
- 脚本perks/classify/src/classify.sh1.0 KB
- 参考文档perks/classify/src/contracts.json487 B
- 参考文档perks/classify/test/case.json275 B
- 资产文件perks/classify/test/fixture/data.csv967 B
- 参考文档perks/cluster_compare/manifesto.json376 B
- 参考文档perks/cluster_compare/metadata.json1.2 KB
- 脚本perks/cluster_compare/src/cluster_compare_cli.py1.9 KB
- 脚本perks/cluster_compare/src/cluster_compare.sh1.0 KB
- 脚本perks/cluster_compare/src/clustering_analysis.py11.1 KB
- 参考文档perks/cluster_compare/src/contracts.json429 B
- 参考文档perks/cluster_compare/test/case.json254 B
- 资产文件perks/cluster_compare/test/fixture/data.csv175 B
- 参考文档perks/optimal_k/manifesto.json373 B
- 参考文档perks/optimal_k/metadata.json1.1 KB
- 脚本perks/optimal_k/src/clustering_analysis.py11.1 KB
- 参考文档perks/optimal_k/src/contracts.json470 B
- 脚本perks/optimal_k/src/optimal_k_cli.py2.4 KB
- 脚本perks/optimal_k/src/optimal_k.sh1.1 KB
- 参考文档perks/optimal_k/test/case.json249 B
- 资产文件perks/optimal_k/test/fixture/data.csv175 B
- 参考文档perks/visualize/manifesto.json358 B
- 参考文档perks/visualize/metadata.json1.1 KB
- 脚本perks/visualize/src/clustering_analysis.py11.1 KB
- 参考文档perks/visualize/src/contracts.json429 B
- 脚本perks/visualize/src/visualize_cli.py2.3 KB
- 脚本perks/visualize/src/visualize.sh1.1 KB
- 参考文档perks/visualize/test/case.json260 B
- 资产文件perks/visualize/test/fixture/data.csv175 B
03 SKILL.md 正文
scikit-learn — Scikit-learn (classical ML)
Classical machine learning with scikit-learn: classify a labeled table, cluster an unlabeled one, find the optimal number of clusters, and project clusters to 2D. Every perk is read-only with respect to its inputs and writes its artifacts under record_store.
What to look out for
Each tool emits one line of structured JSON (the audit + debug log) and writes its
artifacts under record_store. LOGS TO CHECK: that line + the named report (JSON or PNG) + the executor run-ledger.
The heavy science library is scikit-learn; when it is absent the porter degrades gracefully (it still
writes a non-empty JSON report noting the missing dependency) so the governed run stays green offline.
Perks
| perk | tool | nature | output |
|---|---|---|---|
classify |
classify |
read-only / safe | classification.json |
optimal_k |
optimal_k |
read-only / safe | optimal_k.json (+ clustering_optimization.png) |
cluster_compare |
cluster_compare |
read-only / safe | cluster_compare.json |
visualize |
visualize |
read-only / safe | cluster_visualization.json (+ clustering_results.png) |
classifypreprocesses a CSV (median-impute + standard-scale numeric, most-frequent-impute + one-hot categorical), compares Logistic Regression / Random Forest / Gradient Boosting by 5-fold CV, tunes the winner withGridSearchCV, then reports accuracy / precision / recall / F1 (and ROC AUC when binary) plus top feature importances.optimal_ksweeps K over a range, records inertia (elbow) and silhouette per K, saves the elbow/silhouette plot, and reports the silhouette-recommended K.cluster_comparestandardizes the data and scores K-Means, Agglomerative, Gaussian Mixture, and DBSCAN with silhouette, Calinski-Harabasz, and Davies-Bouldin.visualizereduces the scaled data to 2D with PCA, labels it with K-Means, and renders a labeled cluster scatter.
How to use it
Pick a perk, copy ledger.json → task-ledger.json, fill its vars (DATA_CSV, plus the perk's optional knobs) + record_store,
then validate → compose → compile → oversight → executor.
Localized from K-Dense-AI/scientific-agent-skills
scikit-learn— MIT (see LICENSE.txt).
04 同仓库更多 Skills
Vercel Deploy
暂无简介
Audio Transcribe
暂无简介
Speech (OpenAI TTS)
暂无简介
Skill Installer
暂无简介
demo-skill
A demo skill used as a test fixture for the validate perk. Use when checking that quick_validate.py accepts a well-formed SKILL.md.
demo-skill
A demo skill used as a test fixture for generating agents/openai.yaml. Use when validating the gen_openai_yaml perk.