Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WenDesi/lihang_book_algorithm
/ functions
Functions
115 in github.com/WenDesi/lihang_book_algorithm
⨍
Functions
115
◇
Types & classes
12
↓ 10 callers
Method
_K_
核函数
svm/svm.py:91
↓ 4 callers
Method
cal_gamma
公式 10.24
hmm/hmm.py:56
↓ 4 callers
Function
loadImageSet
(which=0)
extract_features.py:10
↓ 3 callers
Method
_E_
公式(7.105)
svm/svm.py:117
↓ 3 callers
Function
calc_ent
calculate shanno ent of x
decision_tree/decision_tree.py:70
↓ 3 callers
Function
data_visualization
(X,y,title)
svm/generate_dataset.py:46
↓ 3 callers
Method
predict
(self,feature)
AdaBoost/adaboost_cpp.py:27
↓ 3 callers
Method
predict
(self,feature)
AdaBoost/adaboost.py:109
↓ 3 callers
Method
predict
(self,features)
logistic_regression/binary_perceptron.py:51
↓ 3 callers
Method
train
(self, features, labels)
logistic_regression/binary_perceptron.py:29
↓ 2 callers
Method
_g_
公式(7.104)
svm/svm.py:106
↓ 2 callers
Method
_satisfy_KKT
(self, i)
svm/svm.py:45
↓ 2 callers
Method
_w_
(self,index,classifier,i)
AdaBoost/adaboost_cpp.py:74
↓ 2 callers
Method
_w_
公式8.4不算Zm
AdaBoost/adaboost.py:139
↓ 2 callers
Function
binaryzation
(img)
naive_bayes/naive_bayes.py:13
↓ 2 callers
Method
cal_e
计算博客中的公式3
softmax/softmax.py:20
↓ 2 callers
Method
cal_probality
计算书85页公式6.22
maxENT/maxENT.py:75
↓ 2 callers
Function
calc_condition_ent
calculate ent H(y|x)
decision_tree/decision_tree.py:84
↓ 2 callers
Function
calculate_probability
(img,label)
naive_bayes/naive_bayes.py:50
↓ 2 callers
Method
forward
前向算法
hmm/hmm.py:22
↓ 2 callers
Method
fxy
(self, x, y)
maxENT/maxENT.py:99
↓ 2 callers
Function
generate_dataset
(size, noisy = False, visualization = True)
svm/generate_dataset.py:84
↓ 2 callers
Function
get_features
(imgs)
extract_features.py:60
↓ 2 callers
Function
loadLabelSet
(which=0)
extract_features.py:37
↓ 2 callers
Function
manul_features
(imgs)
extract_features.py:100
↓ 2 callers
Method
predict_
(self,x)
logistic_regression/logistic_regression.py:23
↓ 2 callers
Function
rebuild_features
将原feature的(a0,a1,a2,a3,a4,...) 变成 (0_a0,1_a1,2_a2,3_a3,4_a4,...)形式
maxENT/maxENT.py:129
↓ 2 callers
Function
rebuild_features
(features)
svm/generate_dataset.py:75
↓ 2 callers
Method
train
(self)
AdaBoost/adaboost.py:91
↓ 1 callers
Function
Predict
(testset,trainset,train_labels)
knn/knn.py:32
↓ 1 callers
Function
Predict
(testset,prior_probability,conditional_probability)
naive_bayes/naive_bayes.py:58
↓ 1 callers
Function
Train
(trainset,train_labels)
naive_bayes/naive_bayes.py:18
↓ 1 callers
Method
_Z_
(self,index,classifier)
AdaBoost/adaboost_cpp.py:78
↓ 1 callers
Method
_Z_
公式8.5
AdaBoost/adaboost.py:146
↓ 1 callers
Method
_init_parameters
初始化一些参数
svm/svm.py:28
↓ 1 callers
Method
_init_parameters_
(self,features,labels)
AdaBoost/adaboost_cpp.py:60
↓ 1 callers
Method
_init_parameters_
(self,features,labels)
AdaBoost/adaboost.py:127
↓ 1 callers
Method
_predict_
(self,feature)
AdaBoost/adaboost_cpp.py:126
↓ 1 callers
Method
_predict_
(self,feature)
AdaBoost/adaboost.py:202
↓ 1 callers
Method
_predict_
(self,feature)
svm/svm.py:190
↓ 1 callers
Method
_select_two_parameters
按照书上7.4.2选择两个变量
svm/svm.py:62
↓ 1 callers
Method
_train_less_than_
寻找(x<v y=1)情况下的最优v
AdaBoost/adaboost.py:41
↓ 1 callers
Method
_train_more_than_
寻找(x>v y=1)情况下的最优v
AdaBoost/adaboost.py:67
↓ 1 callers
Method
add_tree
(self,val,tree)
decision_tree/decision_tree.py:60
↓ 1 callers
Method
backward
后向算法
hmm/hmm.py:40
↓ 1 callers
Function
binaryzation
(img)
AdaBoost/adaboost_cpp.py:150
↓ 1 callers
Function
binaryzation
(img)
AdaBoost/adaboost.py:226
↓ 1 callers
Function
binaryzation
(img)
decision_tree/decision_tree.py:30
↓ 1 callers
Function
binaryzation_features
(trainset)
AdaBoost/adaboost_cpp.py:155
↓ 1 callers
Function
binaryzation_features
(trainset)
AdaBoost/adaboost.py:231
↓ 1 callers
Function
binaryzation_features
(trainset)
decision_tree/decision_tree.py:36
↓ 1 callers
Method
build_c_w
(self)
AdaBoost/adaboost_cpp.py:86
↓ 1 callers
Method
build_dict
(self)
maxENT/maxENT.py:38
↓ 1 callers
Method
cal_EPx
计算书83页最上面那个期望
maxENT/maxENT.py:83
↓ 1 callers
Method
cal_EPxy
计算书中82页最下面那个期望
maxENT/maxENT.py:58
↓ 1 callers
Method
cal_Pxy_Px
(self, X, Y)
maxENT/maxENT.py:46
↓ 1 callers
Method
cal_ksi
公式 10.26
hmm/hmm.py:68
↓ 1 callers
Method
cal_partial_derivative
计算博客中的公式1
softmax/softmax.py:41
↓ 1 callers
Method
cal_probability
计算博客中的公式2
softmax/softmax.py:30
↓ 1 callers
Method
cal_pyx
(self, X, y)
maxENT/maxENT.py:67
↓ 1 callers
Method
generate
(self, length)
hmm/hmm.py:148
↓ 1 callers
Function
get_hog_features
(trainset)
knn/knn.py:14
↓ 1 callers
Function
get_manual_features
()
extract_features.py:159
↓ 1 callers
Method
init
随机生成 A,B,Pi 并保证每行相加等于 1
hmm/hmm.py:82
↓ 1 callers
Method
init_params
(self, X, Y)
maxENT/maxENT.py:24
↓ 1 callers
Function
loadImageSet
(which=0)
main.py:7
↓ 1 callers
Function
loadLabelSet
(which=0)
main.py:34
↓ 1 callers
Function
mk_data
(N, noisy=False)
svm/generate_dataset.py:25
↓ 1 callers
Function
null
(a, rtol=1e-5)
svm/generate_dataset.py:10
↓ 1 callers
Function
predict
(test_set,tree)
decision_tree/decision_tree.py:170
↓ 1 callers
Method
predict
(self,features)
decision_tree/decision_tree.py:63
↓ 1 callers
Method
predict
(self,features)
softmax/softmax.py:84
↓ 1 callers
Method
predict
(self, testset)
maxENT/maxENT.py:121
↓ 1 callers
Method
predict
(self,features)
perceptron/binary_perceptron.py:51
↓ 1 callers
Method
predict
(self,features)
logistic_regression/logistic_regression.py:66
↓ 1 callers
Method
predict
(self,features)
svm/svm.py:200
↓ 1 callers
Method
predict_
(self, x)
softmax/softmax.py:51
↓ 1 callers
Method
predict_
(self, x)
perceptron/binary_perceptron.py:25
↓ 1 callers
Method
predict_
(self, x)
logistic_regression/binary_perceptron.py:25
↓ 1 callers
Method
rebuild_X
(self,X)
AdaBoost/adaboost_cpp.py:46
↓ 1 callers
Method
rebuild_Y
(self,Y)
AdaBoost/adaboost_cpp.py:54
↓ 1 callers
Function
recurse_train
(train_set,train_label,features,epsilon)
decision_tree/decision_tree.py:110
↓ 1 callers
Function
show_data
(x,y)
hmm/hmm.py:214
↓ 1 callers
Function
sign
(x)
svm/generate_dataset.py:16
↓ 1 callers
Function
train
(train_set,train_label,features,epsilon)
decision_tree/decision_tree.py:166
↓ 1 callers
Method
train
(self, O, MaxSteps = 100)
hmm/hmm.py:100
↓ 1 callers
Method
train
(self,features,labels)
AdaBoost/adaboost_cpp.py:92
↓ 1 callers
Method
train
(self, features, labels)
softmax/softmax.py:61
↓ 1 callers
Method
train
(self, X, Y)
maxENT/maxENT.py:102
↓ 1 callers
Method
train
(self, features, labels)
perceptron/binary_perceptron.py:29
↓ 1 callers
Method
train
(self,features, labels)
logistic_regression/logistic_regression.py:36
↓ 1 callers
Method
train
(self, features, labels)
svm/svm.py:132
↓ 1 callers
Function
triangle
三角波
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