data-science-python
Use the DataSciencePython tutorial/example collection through modern self-contained helpers for Python data-science resources, statsmodels logistic regression, scikit-learn Kaggle-style tabular classifiers, and Twitter JSONL extraction.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- data-science-python
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Use the DataSciencePython tutorial/example collection through modern self-contained helpers for Python data-science resources, statsmodels logistic regression, scikit-learn Kaggle-style tabular classifiers, and Twitter JSONL extraction.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/environment.md2.0 KB
- 参考文档references/repo-provenance.md2.1 KB
- 参考文档references/repo-routing-metadata.json522 B
- 参考文档references/troubleshooting.md2.7 KB
- 脚本scripts/check_data_science_python_env.py2.8 KB
03 SKILL.md 正文
DataSciencePython
Use this repo skill when the task names DataSciencePython or asks for a safe, modern way to use its historical Python data-science tutorial list and standalone examples.
This repository is not an installable Python package. It is a curated README plus legacy scripts. Use the generated sub-skills and bundled helper scripts instead of running the original Python 2-era files directly.
Start here
- Read
references/repo-provenance.mdwhen checking staleness against a checkout. - Read
references/environment.mdbefore running helper scripts. - Run
scripts/check_data_science_python_env.pywhen dependency availability is uncertain. - Route to the smallest matching sub-skill below.
Route map
| User intent | Load this sub-skill | Why |
|---|---|---|
| Navigate the README's Python/data science/pandas/sklearn/ML/NLP resource categories or modernize the tiny Python basics snippets. | sub-skills/tutorial-resource-map/SKILL.md |
Distills the tutorial index and Python 2-era snippets without relying on external links being live. |
| Fit the admissions logistic-regression example with pandas and statsmodels, including dummy variables, an intercept, predictions, and optional plots. | sub-skills/statsmodels-logit-workflow/SKILL.md |
Owns the copied admissions CSV fixtures and modernized statsmodels_admission_logit.py helper. |
| Run Kaggle-style dense SVM, hashed SGD logistic regression, or one-hot categorical LogisticRegression examples. | sub-skills/kaggle-linear-models/SKILL.md |
Modernizes the legacy scikit-learn/Criteo/Amazon examples and supplies tiny fixture generation. |
| Extract text from stored Twitter/X JSON-lines data or plan an optional safe live-streaming attempt. | sub-skills/twitter-json-workflow/SKILL.md |
Replaces local R/Windows/Tweepy examples with offline extraction and credential-safe streaming guidance. |
Dependency quick check
From this generated skill root:
python scripts/check_data_science_python_env.py
For optional plot output, add:
python scripts/check_data_science_python_env.py --check-plots
For the optional live-stream template, add:
python scripts/check_data_science_python_env.py --check-tweepy
Important operating constraints
- Treat README links as topic signals, not guaranteed live URLs.
- Do not instruct future agents to run original source scripts; the bundled helpers are the runtime surface.
- Do not assume
pip install -e .works; there is no package metadata in the source snapshot. - Keep live Twitter/X collection opt-in only. It requires user-provided credentials, Tweepy compatibility, network access, and explicit authorization to connect.
- Use tiny bundled/generated fixtures for smoke tests when the original Kaggle/Amazon data files are missing.
Cross-cutting references
references/environment.mdexplains the public dependency set and compatibility notes.references/troubleshooting.mdcovers missing package metadata, legacy APIs, missing competition data, stale links, and credentialed workflows.references/repo-routing-metadata.jsoncontains managed router metadata for a later import transaction.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).