mit-ml icon indicating copy to clipboard operation
mit-ml copied to clipboard

斯坦福机器学习完整 python 实现

Results 4 mit-ml issues
Sort by recently updated
recently updated
newest added

你好,想问下关于gitbook的笔记为什么打不开呀?github上的笔记链接直接跳转到了gitbook的官网……注册了gitbook之后仍然无法正常打开你在github中放的gitbook链接……

![无标题](https://user-images.githubusercontent.com/6965654/77384809-4ad7e500-6dc1-11ea-920a-2dd1eb427c72.png) **应该i改为j** ![无标题](https://user-images.githubusercontent.com/6965654/77384950-af933f80-6dc1-11ea-9f49-a6575f0ed451.png)

您好,在多项式回归代码中,好像有问题,我试了您提供的源码和我自己的,都得不到书里的图像,好像是在numpy.power方法中,您将数据都求平方了

# 获得其他簇的样本 ptsNoInCluster = dataSet[np.nonzero( clusterAssment[:, 0].A != j)[0]] # 获得剩余数据集的误差 nonSplitedError = np.sum(ptsNoInCluster[:, 1]) 获得剩余数据集的误差不需要dataSet,而是clusterAssment 即整体改为: # 获得剩余数据集的误差 nonSplitedError = np.sum(clusterAssment[np.nonzero( clusterAssment[:, 0].A != j)[0]][:, 1])