Skip to content

Commit 90c47ca

Browse files
author
popo
committed
svm_node_array is replaced by svm_nodearray in README.
1 parent 0d31036 commit 90c47ca

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

python/README

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ carefully.
7676
>>> prob = svm_problem([1,-1], [{1:1, 3:1}, {1:-1,3:-1}])
7777
>>> param = svm_parameter('-c 4')
7878
>>> m = libsvm.svm_train(prob, param) # m is a ctype pointer to an svm_model
79-
# Convet a Python-fromat instance to svm_node_array, a ctypes structure
80-
>>> x0, max_idx = gen_svm_node_array({1:1, 3:1})
79+
# Convet a Python-fromat instance to svm_nodearray, a ctypes structure
80+
>>> x0, max_idx = gen_svm_nodearray({1:1, 3:1})
8181
>>> label = libsvm.svm_predict(m, x0)
8282

8383
Design Description
@@ -118,13 +118,13 @@ LIBSVM shared library:
118118

119119
val: a float indicates the feature value.
120120

121-
- Function: gen_svm_node_array(xi [,feature_max=None [,issparse=False]])
121+
- Function: gen_svm_nodearray(xi [,feature_max=None [,issparse=False]])
122122

123123
Generate a feature vector from a Python list/tuple or a dictionary:
124124

125-
>>> xi, max_idx = gen_svm_node_array({1:1, 3:1, 5:-2})
125+
>>> xi, max_idx = gen_svm_nodearray({1:1, 3:1, 5:-2})
126126

127-
xi: the returned svm_node_array (a ctypes structure)
127+
xi: the returned svm_nodearray (a ctypes structure)
128128

129129
max_idx: the maximal feature index of xi
130130

0 commit comments

Comments
 (0)