Logistic regression trained by batch gradient descent for binary classification.
Part of StatLab — twenty standalone statistical analysis tools for Windows, each shipped as a native executable with no runtime dependencies. Author: S M Nazmuz Sakib · [email protected]
- Churn prediction — estimate conversion probability from a numeric feature.
- Medical screening — model a binary outcome from a continuous marker.
- Threshold selection — inspect probabilities before choosing a decision cut-off.
Download logreg.exe from the Releases page, then:
Get-Content data.csv | .\logreg.exe
# or
.\logreg.exe -f data.csvThe executable is a native Windows binary — no Python, no installer, no DLLs.
go test ./...
go build -o logreg.exe .{
"weight": 1.2,
"bias": -0.4,
"accuracy": 0.9
}
CSV with feature,label where label is 0 or 1. Flags control learning rate and epochs.
main_test.go covers the core algorithm with deterministic cases. Run go test ./....
MIT © S M Nazmuz Sakib (2026). Questions: [email protected].
