界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

statsmodels-logit-workflow

statsmodels-logit-workflow

【开发与工程】Fit the admissions logistic regression example with pandas and statsmodels, using bundled CSV fixtures, schema validation, prestige dummy encoding, intercept handling, prediction CSV output, and optional non-interactive plots.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: statsmodels-logit-workflow description: "Fit the admissions logistic regression example with pandas and statsmodels, using bundled CSV fixtures, schema validation, prestige dummy encoding, intercept handling, prediction CSV output, and optional non-interactive plots." disable-model-invocation: true metadata: disco-role: operating license: MIT

statsmodels-logit-workflow

Use this sub-skill for the admissions logistic-regression example built with pandas and statsmodels.

Route here for

  • Loading the bundled admissions train/test CSV fixtures.
  • Validating the required schema and normalizing prestige values.
  • Fitting statsmodels.api.Logit with an intercept and aligned dummy columns.
  • Writing a prediction CSV with probability and thresholded labels.
  • Generating optional PNG diagnostics without an interactive display.

Route away

  • scikit-learn or Kaggle-style classifier pipelines: ../kaggle-linear-models/SKILL.md
  • Tutorial/resource navigation or Python snippet cleanup: ../tutorial-resource-map/SKILL.md

Start here

  • End-to-end recipe: references/workflows.md
  • Column schema and output layout: references/data-formats.md
  • Failure diagnosis: references/troubleshooting.md
  • Bundled helper: scripts/statsmodels_admission_logit.py

Bundled helper

python3 scripts/statsmodels_admission_logit.py \
  --train references/data/admissions_train.csv \
  --test references/data/admissions_test.csv \
  --output ./admissions_predictions.csv \
  --no-plots
我的收藏