python:实现EM算法 import numpy as np def em(data, thetas, max_iter=50, eps=1e-3): # 初始化似然函数值 ll_old = -np