https://medium.com/@monocosmo77/working-with-learning-halfspaces-part7-machine-learning-2024-9afef608b32a