MCPcopy Create free account

hub / github.com/WenDesi/lihang_book_algorithm / functions

Functions115 in github.com/WenDesi/lihang_book_algorithm

↓ 10 callersMethod_K_
核函数
svm/svm.py:91
↓ 4 callersMethodcal_gamma
公式 10.24
hmm/hmm.py:56
↓ 4 callersFunctionloadImageSet
(which=0)
extract_features.py:10
↓ 3 callersMethod_E_
公式(7.105)
svm/svm.py:117
↓ 3 callersFunctioncalc_ent
calculate shanno ent of x
decision_tree/decision_tree.py:70
↓ 3 callersFunctiondata_visualization
(X,y,title)
svm/generate_dataset.py:46
↓ 3 callersMethodpredict
(self,feature)
AdaBoost/adaboost_cpp.py:27
↓ 3 callersMethodpredict
(self,feature)
AdaBoost/adaboost.py:109
↓ 3 callersMethodpredict
(self,features)
logistic_regression/binary_perceptron.py:51
↓ 3 callersMethodtrain
(self, features, labels)
logistic_regression/binary_perceptron.py:29
↓ 2 callersMethod_g_
公式(7.104)
svm/svm.py:106
↓ 2 callersMethod_satisfy_KKT
(self, i)
svm/svm.py:45
↓ 2 callersMethod_w_
(self,index,classifier,i)
AdaBoost/adaboost_cpp.py:74
↓ 2 callersMethod_w_
公式8.4不算Zm
AdaBoost/adaboost.py:139
↓ 2 callersFunctionbinaryzation
(img)
naive_bayes/naive_bayes.py:13
↓ 2 callersMethodcal_e
计算博客中的公式3
softmax/softmax.py:20
↓ 2 callersMethodcal_probality
计算书85页公式6.22
maxENT/maxENT.py:75
↓ 2 callersFunctioncalc_condition_ent
calculate ent H(y|x)
decision_tree/decision_tree.py:84
↓ 2 callersFunctioncalculate_probability
(img,label)
naive_bayes/naive_bayes.py:50
↓ 2 callersMethodforward
前向算法
hmm/hmm.py:22
↓ 2 callersMethodfxy
(self, x, y)
maxENT/maxENT.py:99
↓ 2 callersFunctiongenerate_dataset
(size, noisy = False, visualization = True)
svm/generate_dataset.py:84
↓ 2 callersFunctionget_features
(imgs)
extract_features.py:60
↓ 2 callersFunctionloadLabelSet
(which=0)
extract_features.py:37
↓ 2 callersFunctionmanul_features
(imgs)
extract_features.py:100
↓ 2 callersMethodpredict_
(self,x)
logistic_regression/logistic_regression.py:23
↓ 2 callersFunctionrebuild_features
将原feature的(a0,a1,a2,a3,a4,...) 变成 (0_a0,1_a1,2_a2,3_a3,4_a4,...)形式
maxENT/maxENT.py:129
↓ 2 callersFunctionrebuild_features
(features)
svm/generate_dataset.py:75
↓ 2 callersMethodtrain
(self)
AdaBoost/adaboost.py:91
↓ 1 callersFunctionPredict
(testset,trainset,train_labels)
knn/knn.py:32
↓ 1 callersFunctionPredict
(testset,prior_probability,conditional_probability)
naive_bayes/naive_bayes.py:58
↓ 1 callersFunctionTrain
(trainset,train_labels)
naive_bayes/naive_bayes.py:18
↓ 1 callersMethod_Z_
(self,index,classifier)
AdaBoost/adaboost_cpp.py:78
↓ 1 callersMethod_Z_
公式8.5
AdaBoost/adaboost.py:146
↓ 1 callersMethod_init_parameters
初始化一些参数
svm/svm.py:28
↓ 1 callersMethod_init_parameters_
(self,features,labels)
AdaBoost/adaboost_cpp.py:60
↓ 1 callersMethod_init_parameters_
(self,features,labels)
AdaBoost/adaboost.py:127
↓ 1 callersMethod_predict_
(self,feature)
AdaBoost/adaboost_cpp.py:126
↓ 1 callersMethod_predict_
(self,feature)
AdaBoost/adaboost.py:202
↓ 1 callersMethod_predict_
(self,feature)
svm/svm.py:190
↓ 1 callersMethod_select_two_parameters
按照书上7.4.2选择两个变量
svm/svm.py:62
↓ 1 callersMethod_train_less_than_
寻找(x<v y=1)情况下的最优v
AdaBoost/adaboost.py:41
↓ 1 callersMethod_train_more_than_
寻找(x>v y=1)情况下的最优v
AdaBoost/adaboost.py:67
↓ 1 callersMethodadd_tree
(self,val,tree)
decision_tree/decision_tree.py:60
↓ 1 callersMethodbackward
后向算法
hmm/hmm.py:40
↓ 1 callersFunctionbinaryzation
(img)
AdaBoost/adaboost_cpp.py:150
↓ 1 callersFunctionbinaryzation
(img)
AdaBoost/adaboost.py:226
↓ 1 callersFunctionbinaryzation
(img)
decision_tree/decision_tree.py:30
↓ 1 callersFunctionbinaryzation_features
(trainset)
AdaBoost/adaboost_cpp.py:155
↓ 1 callersFunctionbinaryzation_features
(trainset)
AdaBoost/adaboost.py:231
↓ 1 callersFunctionbinaryzation_features
(trainset)
decision_tree/decision_tree.py:36
↓ 1 callersMethodbuild_c_w
(self)
AdaBoost/adaboost_cpp.py:86
↓ 1 callersMethodbuild_dict
(self)
maxENT/maxENT.py:38
↓ 1 callersMethodcal_EPx
计算书83页最上面那个期望
maxENT/maxENT.py:83
↓ 1 callersMethodcal_EPxy
计算书中82页最下面那个期望
maxENT/maxENT.py:58
↓ 1 callersMethodcal_Pxy_Px
(self, X, Y)
maxENT/maxENT.py:46
↓ 1 callersMethodcal_ksi
公式 10.26
hmm/hmm.py:68
↓ 1 callersMethodcal_partial_derivative
计算博客中的公式1
softmax/softmax.py:41
↓ 1 callersMethodcal_probability
计算博客中的公式2
softmax/softmax.py:30
↓ 1 callersMethodcal_pyx
(self, X, y)
maxENT/maxENT.py:67
↓ 1 callersMethodgenerate
(self, length)
hmm/hmm.py:148
↓ 1 callersFunctionget_hog_features
(trainset)
knn/knn.py:14
↓ 1 callersFunctionget_manual_features
()
extract_features.py:159
↓ 1 callersMethodinit
随机生成 A,B,Pi 并保证每行相加等于 1
hmm/hmm.py:82
↓ 1 callersMethodinit_params
(self, X, Y)
maxENT/maxENT.py:24
↓ 1 callersFunctionloadImageSet
(which=0)
main.py:7
↓ 1 callersFunctionloadLabelSet
(which=0)
main.py:34
↓ 1 callersFunctionmk_data
(N, noisy=False)
svm/generate_dataset.py:25
↓ 1 callersFunctionnull
(a, rtol=1e-5)
svm/generate_dataset.py:10
↓ 1 callersFunctionpredict
(test_set,tree)
decision_tree/decision_tree.py:170
↓ 1 callersMethodpredict
(self,features)
decision_tree/decision_tree.py:63
↓ 1 callersMethodpredict
(self,features)
softmax/softmax.py:84
↓ 1 callersMethodpredict
(self, testset)
maxENT/maxENT.py:121
↓ 1 callersMethodpredict
(self,features)
perceptron/binary_perceptron.py:51
↓ 1 callersMethodpredict
(self,features)
logistic_regression/logistic_regression.py:66
↓ 1 callersMethodpredict
(self,features)
svm/svm.py:200
↓ 1 callersMethodpredict_
(self, x)
softmax/softmax.py:51
↓ 1 callersMethodpredict_
(self, x)
perceptron/binary_perceptron.py:25
↓ 1 callersMethodpredict_
(self, x)
logistic_regression/binary_perceptron.py:25
↓ 1 callersMethodrebuild_X
(self,X)
AdaBoost/adaboost_cpp.py:46
↓ 1 callersMethodrebuild_Y
(self,Y)
AdaBoost/adaboost_cpp.py:54
↓ 1 callersFunctionrecurse_train
(train_set,train_label,features,epsilon)
decision_tree/decision_tree.py:110
↓ 1 callersFunctionshow_data
(x,y)
hmm/hmm.py:214
↓ 1 callersFunctionsign
(x)
svm/generate_dataset.py:16
↓ 1 callersFunctiontrain
(train_set,train_label,features,epsilon)
decision_tree/decision_tree.py:166
↓ 1 callersMethodtrain
(self, O, MaxSteps = 100)
hmm/hmm.py:100
↓ 1 callersMethodtrain
(self,features,labels)
AdaBoost/adaboost_cpp.py:92
↓ 1 callersMethodtrain
(self, features, labels)
softmax/softmax.py:61
↓ 1 callersMethodtrain
(self, X, Y)
maxENT/maxENT.py:102
↓ 1 callersMethodtrain
(self, features, labels)
perceptron/binary_perceptron.py:29
↓ 1 callersMethodtrain
(self,features, labels)
logistic_regression/logistic_regression.py:36
↓ 1 callersMethodtrain
(self, features, labels)
svm/svm.py:132
↓ 1 callersFunctiontriangle
三角波
hmm/hmm.py:184
Method__init__
(self,N,M)
hmm/hmm.py:7
Method__init__
(self,is_less,index)
AdaBoost/adaboost_cpp.py:22
Method__init__
(self)
AdaBoost/adaboost_cpp.py:42
Method__init__
(self,features,labels,w)
AdaBoost/adaboost.py:32
Method__init__
(self)
AdaBoost/adaboost.py:124
Method__init__
(self,node_type,Class = None, feature = None)
decision_tree/decision_tree.py:54
Method__init__
(self)
softmax/softmax.py:15
next →1–100 of 115, ranked by callers