issues Search Results · repo:wzy6642/Machine-Learning-in-Action-Python3 language:HTML
Filter by
10 results
(56 ms)10 results
inwzy6642/Machine-Learning-in-Action-Python3 (press backspace or delete to remove)需要替换属性FontProperties=为fontproperties=,注意替换时不能把FontProperties函数替换了,建议添加=
berrylvz
- Opened on Feb 17, 2024
- #10
Parvezkhan0
- Opened on Oct 20, 2023
- #9
530行里 调用classify方法,给定的第二项输入应该是完整的数据labels,且顺序和数据集顺序应该一致
同时优化了classify方法的写法 更加直观
def classify(inputTree, featLabels, testVec):
# 获取决策树结点
# 当前树节点的key首项 表明选择的特征类型
keyLabel = list(inputTree.keys())[0] ...
Inouyasha
- Opened on Jan 5, 2022
- #8
def replaceNaNWithMean(): 里面应该是这个⑧ meanVal = np.mean(datMat[np.nonzero(~np.isnan(datMat[:, i].A))[0], i])
KnightPanda
- Opened on Nov 22, 2020
- #7
🐛 正则匹配并不能匹配到正确的词 ♐ 这样可以,不知再有没有更好的解决方式
def textParse(bigString):
# 用特殊符号作为切分标志进行字符串切分,即非字母、非数字
# \W* 0个或多个非字母数字或下划线字符(等价于[^a-zA-Z0-9_])
bigString=bigString.split()
listOfTockens=[]
...
Grifcc
- Opened on Oct 15, 2020
- #6
https://github.com/wzy6642/Machine-Learning-in-Action-Python3/blob/3710796b7497255fbc1bba91b0558b4b3eb828b4/PCA_Project1/PCA.py#L52
Azson
- Opened on Sep 5, 2019
- #4
def rssError() 函数说明部分的returns不应该是ws,应该是((yArr - yHatArr)**2).sum()。
paulxin001
- Opened on Sep 2, 2019
- #3
Machine-Learning-in-Action-Python3/CART_Project3/CART.py 第285行 errorNoMerge = np.sum(np.power(lSet[:, -1] - tree[ left
], 2)) + np.sum(np.power(rSet[:, 1] - tree[ right ], 2)) 中的后半部分rSet的索引似乎应该是[:, -1]。应修改为: ...
xiaoliou008
- 1
- Opened on Jul 8, 2019
- #1

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.