不同颜色的方块代表不同的类别
代码:https://github.com/Sierkinhane/CS229-ML-Implements/tree/master/00-SupervisedLearning/03-GeneralizedLinearModels
(如果对你有帮助,可以给个star!)
机器学习算法资料与Python实现请跳转:https://blog.csdn.net/Sierkinhane/article/details/82883161