Optimizing Classification Threshold Based on Profit

Train a classification model using the Linear Regression algorithm. Evaluate the class prediction by overall accuracy and profit statistics. To calculate profit statistics, classification results are weighted by the values in a predefined profit matrix. Values in the profit matrix depend on the final goal of the classification model.

This is a companion discussion topic for the original entry at https://kni.me/w/R0IpFcF6rW7q-kBc