Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aimi-cn/AILearners
/ functions
Functions
414 in github.com/aimi-cn/AILearners
⨍
Functions
414
◇
Types & classes
15
↓ 1 callers
Method
GetUglyNumber
(self, array)
src/py2.x/algorithm/algo5_1.py:15
↓ 1 callers
Function
Partition
(lst, left, right)
src/py2.x/algorithm/algo2_1.py:4
↓ 1 callers
Function
adaBoostTrainDS
(dataArr, classLabels, numIt = 40)
src/py2.x/ml/jqxxsz/7.AdaBoost/horse_adaboost.py:100
↓ 1 callers
Function
adaBoostTrainDS
(dataArr, classLabels, numIt = 40)
src/py2.x/ml/jqxxsz/7.AdaBoost/AdaBoost01.py:123
↓ 1 callers
Function
adaClassify
(datToClass,classifierArr)
src/py2.x/ml/jqxxsz/7.AdaBoost/AdaBoost01.py:158
↓ 1 callers
Function
ascendTree
(leafNode, prefixPath)
data/ml/jqxxsz/sourceData/Ch12/fpGrowth.py:72
↓ 1 callers
Function
autoNorm
(dataSet)
data/ml/jqxxsz/sourceData/Ch02/kNN.py:52
↓ 1 callers
Function
batchPegasos
(dataSet, labels, lam, T, k)
data/ml/jqxxsz/sourceData/Ch15/pegasos.py:35
↓ 1 callers
Method
beginToScrapy
(self,page_num,proxies)
src/py3.x/others/fm/19.08.26/csdn.py:83
↓ 1 callers
Function
biKmeans
(dataSet, k, distMeas=distEclud)
data/ml/jqxxsz/sourceData/Ch10/kMeans.py:51
↓ 1 callers
Function
buildStump
(dataArr,classLabels,D)
data/ml/jqxxsz/sourceData/Ch07/old_adaboost.py:26
↓ 1 callers
Function
buildStump
(dataArr,classLabels,D)
data/ml/jqxxsz/sourceData/Ch07/adaboost.py:39
↓ 1 callers
Function
buildStump
(dataArr,classLabels,D)
src/py2.x/ml/jqxxsz/7.AdaBoost/horse_adaboost.py:56
↓ 1 callers
Function
buildStump
(dataArr,classLabels,D)
src/py2.x/ml/jqxxsz/7.AdaBoost/AdaBoost01.py:79
↓ 1 callers
Function
calcMostFreq
(vocabList,fullText)
data/ml/jqxxsz/sourceData/Ch04/bayes.py:114
↓ 1 callers
Function
calcWs
计算w Parameters: dataArr - 数据矩阵 classLabels - 数据标签 alphas - alphas值 Returns: w - 计算得到的w
src/py2.x/ml/jqxxsz/6.SVM/svm_demo01.py:272
↓ 1 callers
Function
chooseBestFeatureToSplit
(dataSet)
data/ml/jqxxsz/sourceData/Ch03/trees.py:41
↓ 1 callers
Function
chooseBestFeatureToSplit
(dataSet)
src/py2.x/ml/jqxxsz/3.DecisionTree/DecisionTree_demo01.py:143
↓ 1 callers
Function
chooseBestSplit
(dataSet, leafType=regLeaf, errType=regErr, ops=(1,4))
data/ml/jqxxsz/sourceData/Ch09/regTrees.py:48
↓ 1 callers
Function
chooseBestSplit
(dataSet, leafType = regLeaf, errType = regErr, ops = (1,4))
src/py2.x/ml/jqxxsz/9.RegTrees/treePruning.py:69
↓ 1 callers
Function
chooseBestSplit
(dataSet, leafType = regLeaf, errType = regErr, ops = (1,4))
src/py2.x/ml/jqxxsz/9.RegTrees/regTrees.py:87
↓ 1 callers
Function
chooseBestSplit
chooseBestSplit(用最佳方式切分数据集 和 生成相应的叶节点) Args: dataSet 加载的原始数据集 leafType 建立叶子点的函数 errType 误差计算函数(求总方差) ops
src/py2.x/ml/jqxxsz/9.RegTrees/demo.py:85
↓ 1 callers
Function
chooseBestSplit
(dataSet, leafType = regLeaf, errType = regErr, ops = (1,4))
src/py2.x/ml/jqxxsz/9.RegTrees/modelTree.py:88
↓ 1 callers
Function
classify
(inputTree, featLabels, testVec)
src/py2.x/ml/jqxxsz/3.DecisionTree/DecisionTree_demo01.py:270
↓ 1 callers
Function
classify1
inX: 用于分类的输入向量 输入的测试数据 dataSet:输入的训练样本 lables:标签向量 k:选择最近邻居的数目 通常小于20 注意:labels元素数目和dataSet行数相同;程序使用欧式距离公式. 预测数据所在分类可在输入下列命令
src/py2.x/ml/jqxxsz/2.KNN/KNN.py:131
↓ 1 callers
Function
classifyPerson
()
src/py2.x/ml/jqxxsz/2.KNN/KNN_demo01.py:197
↓ 1 callers
Function
classifyVector
(inX, weights)
data/ml/jqxxsz/sourceData/Ch05/logRegres.py:79
↓ 1 callers
Function
clipAlpha
修剪alpha_j Parameters: aj - alpha_j的值 H - alpha上限 L - alpha下限 Returns: aj - 修剪后的alpah_j的值
src/py2.x/ml/jqxxsz/6.SVM/svm_demo02.py:149
↓ 1 callers
Function
clipAlpha
修剪alpha_j Parameters: aj - alpha_j的值 H - alpha上限 L - alpha下限 Returns: aj - 修剪后的alpah_j的值
src/py2.x/ml/jqxxsz/6.SVM/svm_demo01.py:123
↓ 1 callers
Function
clipAlpha
修剪alpha_j Parameters: aj - alpha_j的值 H - alpha上限 L - alpha下限 Returns: aj - 修剪后的alpah_j的值
src/py2.x/ml/jqxxsz/6.SVM/svm2.py:170
↓ 1 callers
Function
clipAlpha
(aj,H,L)
src/py2.x/ml/jqxxsz/6.SVM/svm.py:79
↓ 1 callers
Function
colicTest
()
data/ml/jqxxsz/sourceData/Ch05/logRegres.py:84
↓ 1 callers
Function
colicTest
()
src/py2.x/ml/jqxxsz/5.Logistic/Logistic_demo01.py:86
↓ 1 callers
Function
colicTest
()
src/py2.x/ml/jqxxsz/5.Logistic/Logistic_demo02.py:16
↓ 1 callers
Function
colicTest1
()
src/py2.x/ml/jqxxsz/5.Logistic/Logistic_demo01.py:111
↓ 1 callers
Function
creatDataSet
|不浮出水面可以生存| 是否有脚蹼 |属于鱼类 |1-是----------------------|-是------------|是 |2-是--------------------- |-是------------|是 |3-是----------------
src/py2.x/ml/jqxxsz/3.DecisionTree/DecisionTree_demo01.py:28
↓ 1 callers
Function
createC1
(dataSet)
data/ml/jqxxsz/sourceData/Ch11/apriori.py:11
↓ 1 callers
Function
createDataSet
创建数据集和标签 调用方式 import kNN group, labels = kNN.createDataSet()
src/py2.x/ml/jqxxsz/2.KNN/KNN.py:25
↓ 1 callers
Function
createInitSet
(dataSet)
data/ml/jqxxsz/sourceData/Ch12/fpGrowth.py:113
↓ 1 callers
Function
createTree
(dataSet, labels)
src/py2.x/ml/jqxxsz/3.DecisionTree/DecisionTree_demo01.py:227
↓ 1 callers
Function
createTree
(dataSet, leafType = regLeaf, errType = regErr, ops = (1, 4))
src/py2.x/ml/jqxxsz/9.RegTrees/treePruning.py:116
↓ 1 callers
Function
createTree
(dataSet, leafType = regLeaf, errType = regErr, ops = (1, 4))
src/py2.x/ml/jqxxsz/9.RegTrees/regTrees.py:134
↓ 1 callers
Function
createTree
(dataSet, leafType = regLeaf, errType = regErr, ops = (1, 4))
src/py2.x/ml/jqxxsz/9.RegTrees/modelTree.py:135
↓ 1 callers
Function
createVocabList
(dataSet)
src/py2.x/ml/jqxxsz/4.NaiveBayes/NaiveBayesDemo01.py:38
↓ 1 callers
Function
f_prime
(x_old)
src/py2.x/ml/jqxxsz/5.Logistic/Logistic.py:24
↓ 1 callers
Function
file2matrix
(filename)
data/ml/jqxxsz/sourceData/Ch02/kNN.py:37
↓ 1 callers
Function
findPrefixPath
(basePat, treeNode)
data/ml/jqxxsz/sourceData/Ch12/fpGrowth.py:77
↓ 1 callers
Function
fishTest
()
src/py2.x/ml/jqxxsz/3.DecisionTree/DecisionTree_demo01.py:314
↓ 1 callers
Function
geoGrab
(stAddress, city)
data/ml/jqxxsz/sourceData/Ch10/kMeans.py:82
↓ 1 callers
Function
getInputs
()
data/ml/jqxxsz/sourceData/Ch09/treeExplore.py:27
↓ 1 callers
Function
getMean
(tree)
data/ml/jqxxsz/sourceData/Ch09/regTrees.py:89
↓ 1 callers
Function
getMean
(tree)
src/py2.x/ml/jqxxsz/9.RegTrees/treePruning.py:146
↓ 1 callers
Function
getMean
Desc: 从上往下遍历树直到叶节点为止,如果找到两个叶节点则计算它们的平均值。 对 tree 进行塌陷处理,即返回树平均值。 Args: tree -- 输入的树 Returns: 返回 tree 节点的平均
src/py2.x/ml/jqxxsz/9.RegTrees/demo.py:193
↓ 1 callers
Method
getOriginalArticalNums
(self,proxies)
src/py3.x/others/fm/19.08.26/csdn.py:34
↓ 1 callers
Method
getScrapyPageNums
(self,nums)
src/py3.x/others/fm/19.08.26/csdn.py:61
↓ 1 callers
Function
getTreeDepth
(myTree)
src/py2.x/ml/jqxxsz/3.DecisionTree/decisionTreePlot.py:39
↓ 1 callers
Function
get_ip_list
(url, headers)
src/py3.x/others/fm/19.08.26/csdn.py:109
↓ 1 callers
Function
get_random_ip
(ip_list)
src/py3.x/others/fm/19.08.26/csdn.py:123
↓ 1 callers
Function
get_w
(dataMat, labelMat, alphas)
src/py2.x/ml/jqxxsz/6.SVM/svm.py:199
↓ 1 callers
Function
gradAscent
(dataMatIn, classLabels)
src/py2.x/ml/jqxxsz/5.Logistic/Logistic_demo01.py:32
↓ 1 callers
Function
gradAscent2
(dataMatIn, classLabels)
src/py2.x/ml/jqxxsz/5.Logistic/Logistic.py:226
↓ 1 callers
Function
handwritingClassTest
()
src/py2.x/ml/jqxxsz/2.KNN/KNN_demo03.py:48
↓ 1 callers
Function
handwritingClassTest
()
src/py2.x/ml/jqxxsz/2.KNN/KNN_demo02.py:40
↓ 1 callers
Function
handwritingClassTest
手写数字分类测试 Parameters: 无 Returns: 无
src/py2.x/ml/jqxxsz/6.SVM/svm_svc.py:42
↓ 1 callers
Function
img2vector
(filename)
data/ml/jqxxsz/sourceData/Ch06/svmMLiA.py:208
↓ 1 callers
Function
img2vector
将32x32的二进制图像转换为1x1024向量。 Parameters: filename - 文件名 Returns: returnVect - 返回的二进制图像的1x1024向量
src/py2.x/ml/jqxxsz/6.SVM/svm_demo02.py:260
↓ 1 callers
Method
inc
(self, numOccur)
data/ml/jqxxsz/sourceData/Ch12/fpGrowth.py:21
↓ 1 callers
Function
kMeans
(dataSet, k, distMeas=distEclud, createCent=randCent)
data/ml/jqxxsz/sourceData/Ch10/kMeans.py:29
↓ 1 callers
Function
loadDataSet
(fileName, delim='\t')
data/ml/jqxxsz/sourceData/Ch13/pca.py:8
↓ 1 callers
Function
loadDataSet
()
data/ml/jqxxsz/sourceData/Ch05/logRegres.py:8
↓ 1 callers
Function
loadDataSet
(fileName)
data/ml/jqxxsz/sourceData/Ch15/pegasos.py:9
↓ 1 callers
Function
loadDataSet
()
data/ml/jqxxsz/sourceData/Ch04/bayes.py:8
↓ 1 callers
Function
loadDataSet
(fileName)
src/py2.x/ml/jqxxsz/8.Regression/regression02.py:24
↓ 1 callers
Function
loadDataSet
(fileName)
src/py2.x/ml/jqxxsz/8.Regression/regression03.py:24
↓ 1 callers
Function
loadDataSet
(fileName)
src/py2.x/ml/jqxxsz/8.Regression/abalone.py:24
↓ 1 callers
Function
loadDataSet
读取数据 Parameters: fileName - 文件名 Returns: dataMat - 数据矩阵 labelMat - 数据标签
src/py2.x/ml/jqxxsz/6.SVM/svm_demo01.py:38
↓ 1 callers
Function
loadDataSet
(filename)
src/py2.x/ml/jqxxsz/6.SVM/svm.py:24
↓ 1 callers
Function
loadDataSet
()
src/py2.x/ml/jqxxsz/4.NaiveBayes/NaiveBayesDemo01.py:23
↓ 1 callers
Function
loadSimpData
()
src/py2.x/ml/jqxxsz/7.AdaBoost/AdaBoost01.py:23
↓ 1 callers
Function
localWords
(feed1,feed0)
data/ml/jqxxsz/sourceData/Ch04/bayes.py:122
↓ 1 callers
Function
lwlr
(testPoint, xArr, yArr, k = 1.0)
src/py2.x/ml/jqxxsz/8.Regression/abalone.py:45
↓ 1 callers
Function
lwlr
(testPoint, xArr, yArr, k = 1.0)
src/py2.x/ml/jqxxsz/8.Regression/regression.py:95
↓ 1 callers
Function
majorityCnt
(classList)
data/ml/jqxxsz/sourceData/Ch03/trees.py:59
↓ 1 callers
Function
majorityCnt
(classList)
src/py2.x/ml/jqxxsz/3.DecisionTree/DecisionTree_demo01.py:202
↓ 1 callers
Function
merge
(num1, num2)
src/py2.x/algorithm/algo6.py:4
↓ 1 callers
Function
mineTree
(inTree, headerTable, minSup, preFix, freqItemList)
data/ml/jqxxsz/sourceData/Ch12/fpGrowth.py:87
↓ 1 callers
Function
plotTree
(myTree, parentPt, nodeTxt)
data/ml/jqxxsz/sourceData/Ch03/treePlotter.py:43
↓ 1 callers
Function
plotTree
(myTree, parentPt, nodeTxt)
src/py2.x/ml/jqxxsz/3.DecisionTree/decisionTreePlot.py:67
↓ 1 callers
Function
plotWeights
(weights_array1,weights_array2)
src/py2.x/ml/jqxxsz/5.Logistic/Logistic.py:243
↓ 1 callers
Function
plotlwlrRegression
()
src/py2.x/ml/jqxxsz/8.Regression/regression.py:129
↓ 1 callers
Function
plotstageWiseMat
()
src/py2.x/ml/jqxxsz/8.Regression/regression03.py:100
↓ 1 callers
Function
plotwMat
()
src/py2.x/ml/jqxxsz/8.Regression/regression02.py:79
↓ 1 callers
Function
prune
(tree, testData)
src/py2.x/ml/jqxxsz/9.RegTrees/treePruning.py:157
↓ 1 callers
Function
read_input
(file)
data/ml/jqxxsz/sourceData/Ch15/mrMeanReducer.py:9
↓ 1 callers
Function
read_input
(file)
data/ml/jqxxsz/sourceData/Ch15/mrMeanMapper.py:11
↓ 1 callers
Function
regularize
(xMat)
data/ml/jqxxsz/sourceData/Ch08/Old_regression.py:86
↓ 1 callers
Function
regularize
(xMat)
data/ml/jqxxsz/sourceData/Ch08/regression.py:86
↓ 1 callers
Function
regularize
(xMat, yMat)
src/py2.x/ml/jqxxsz/8.Regression/regression03.py:44
↓ 1 callers
Function
reverseWords
(s)
src/py2.x/ml/jqxxsz/1.MLFoundation/test.py:28
↓ 1 callers
Function
ridgeRegres
(xMat,yMat,lam=0.2)
data/ml/jqxxsz/sourceData/Ch08/Old_regression.py:62
← previous
next →
101–200 of 414, ranked by callers