logistic-regression
Skill0 starsChanged 5 months agoMITView on GitHub
Fits a binary logistic regression with statsmodels, produces a LogisticRegressionReport validating against the pack schema, renders a standalone HTML report. Outputs results/report.json (LogisticRegressionReport) and results/report.html. Lead with marginal effects (AME), not raw log-odds. AME tells you the average change in predicted probability per unit increase in each feature — the quantity humans find most interpretable. After fit, run diagnostics for assumption checks adapted to logistic models (log-odds linearity, leverage analysis). Or run model-comparison alongside an OLS fit on the same…
1 other project uses a version of this.
Adopted by
Most recently taken up by
- muralidharsoth-tech/andrew-ng-ml-claude-skillstheir own version, first seen Oct 15, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- muralidharsoth-tech/andrew-ng-ml-claude-skills★ 40same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- diagnosticsSkill
- linear-regressionSkill
- model-comparisonSkill
- pre-analysisSkill
- regularized-regressionSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 67
After fit, run diagnostics for assumption checks adapted to logistic models (log-odds linearity, leverage analysis).
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
logistic-regression
Fits a binary logistic regression with statsmodels, produces a LogisticRegressionReport validating against the pack schema, renders a standalone HTML report.
When to use
- Target has exactly two distinct values (0/1, yes/no, true/false, two category names)
- User asks for logistic regression, "model a binary outcome", "predict yes/no"
- pre-analysis identified the target as
binary - User wants odds ratios or predicted probabilities, not just coefficient signs
Quick start
python .agents/skills/logistic-regression/scripts/fit.py \
--data path/to/data.csv \
--target churned \
--positive-class yes \
--features tenure,monthly_charges,contract_type \
--output results/Outputs results/report.json (LogisticRegressionReport) and results/report.html.
Arguments
| Flag | Default | Description |
--data | required | CSV or Parquet path |
--target | required | Binary target column (exactly 2 unique values) |
--positive-class | auto | Which value to treat as 1 (default: 1 if 0/1 numeric, else alphabetically last) |
--features | required | Comma-separated columns, or all |
--output | required | Output directory |
--robust-se | off | HC0–HC3 robust standard errors |
--threshold | 0.5 | Classification decision threshold |
--dataset-name | "" | Label shown in report header |
Outputs
out/
├── report.json # LogisticRegressionReport (Pydantic schema)
└── report.html # Self-contained HTML with Plotly chartsReport sections
- Fit summary — AUC, Brier score, McFadden pseudo-R², AIC/BIC, positive rate
- Marginal effects — AME forest plot + table (the primary interpretation surface)
- Coefficients — log-odds table + odds ratio forest plot (log scale)
- Classification performance — confusion matrix, accuracy, balanced accuracy, F1
- ROC curve — AUC annotated
- Calibration — reliability diagram with Brier score
- Interpretation — AME-based plain-English facts per feature
- Flags & recommendations
Interpreting the output
Lead with marginal effects (AME), not raw log-odds. AME tells you the average change in predicted probability per unit increase in each feature — the quantity humans find most interpretable.
- AUC 0.5 = random, 0.7 = OK, 0.8 = good, 0.9+ = strong
- Brier score 0.25 = baseline for balanced classes (lower is better)
CLASS_IMBALANCEflag: accuracy is misleading; prefer balanced accuracy and AUC
Chaining
After fit, run diagnostics for assumption checks adapted to logistic models (log-odds linearity, leverage analysis). Or run model-comparison alongside an OLS fit on the same binary target.
References
references/odds_ratio_interpretation.mdreferences/marginal_effects.mdreferences/class_imbalance.mdreferences/threshold_choice.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

