Logistic regression
The first classification model that we are going to explore is called logistic regression. As you can tell from the name, this method is based on a regression, which we discussed in more detail in the previous chapter. However, this particular regression uses a function that is particularly well suited to classification problems.
This is also a simple and interpretable model, which makes it a great first choice when solving classification problems. There are a variety of existing Go packages that implement logistic regression for you, including github.com/xlvector/hector, github.com/cdipaolo/goml, and github.com/sjwhitworth/golearn. However, in our example, we will implement logistic regression from scratch, so that you ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access