Research Article
Road-Type Classification with Deep AutoEncoder
Algorithm 6
Road segment classification using K-NN.
| Require: Training set: | | Test set: | | Output: List of labels such that is the class label of the Test set element : | (1) | for i = 1 todo | (2) | for j = 1 to m do | (3) | Compute the distance of to the element of the training set | (4) | end for | (5) | Compute the set of the -nearest vectors to based on | (6) | Compute the class label of using equation (12) | (7) | end for | (8) | Return |
|