pyACA: Documentation 0.3.1
Source Code for Audio Content Analysis
|
Functions | |
ToolSimpleKnn (v_test, V_train, ClassIdx_train, K=1) | |
helper function: k nearest neighbor classifier | |
getClasses_I (labels) | |
computePairwiseDistance_I (test_data, train_data) | |
computeEucDist_I (vector, matrix) | |
inferClass_I (closest_labels, classes, closeness) | |
computeEucDist_I | ( | vector, | |
matrix ) |
Definition at line 61 of file ToolSimpleKnn.py.
computePairwiseDistance_I | ( | test_data, | |
train_data ) |
Definition at line 52 of file ToolSimpleKnn.py.
getClasses_I | ( | labels | ) |
Definition at line 47 of file ToolSimpleKnn.py.
inferClass_I | ( | closest_labels, | |
classes, | |||
closeness ) |
Definition at line 67 of file ToolSimpleKnn.py.
ToolSimpleKnn | ( | v_test, | |
V_train, | |||
ClassIdx_train, | |||
K = 1 ) |
helper function: k nearest neighbor classifier
v_test | test feature vector |
V_train | features for all train observations (dimension iNumFeatures x iNumObservations) |
ClassIdx_train | class labels (length observations) |
K | number of neighbors taken into account (default = 3) |
Definition at line 14 of file ToolSimpleKnn.py.