0

在此示例中,中心数列表是什么cluster sigmas意思,是否意味着他们为组的三个质心选择了随机坐标?

我无法理解 for 循环在这里的作用:

for i, ((xmu, ymu), (xsigma, ysigma)) in enumerate(zip(centers, sigmas)):
    xpts = np.hstack((xpts, np.random.standard_normal(200) * xsigma + xmu))
    ypts = np.hstack((ypts, np.random.standard_normal(200) * ysigma + ymu))
    labels = np.hstack((labels, np.ones(200) * i))
4

0 回答 0