Logistic回归---从疝气病症预测马的死亡率

#!/usr/bin/python # -*- coding: utf-8 -*- #coding=utf-8 from numpy import * #打开文本文件并逐行读取,每行前两个值为x1,x2,第3列为类别标签 #为方便计算,将x0设为1.0 def loadDataSet(): dataMat = []; labelMat = [] fr = open('tes
相关文章
相关标签/搜索