python EM算法4(身高体重数据集)
1 处理数据import numpy as np# 预处理数据def loadData(filename): dataSet = [] fr = open(filename) for line in fr.readlines(): curLine = line.strip('\n').split('\t') fltLine = list...