MSBC Group Interview Question

Write code for training a linear classifier.