From 8070dc963753142bb86c4ed698d91fd623ed28e7 Mon Sep 17 00:00:00 2001 From: ziejd2 Date: Thu, 28 Sep 2017 15:04:40 -0500 Subject: BNW using Octave instead of Matlab. This version of BNW should perform the same as the original version. The only difference is that it uses Octave instead of Matlab when running BayesNet Toolbox during parameter learning. I am calling this BNW_1.02. It can be accessed at: compbio.uthsc.edu/BNW_1.02 --- sourcecodes/bnt-master/nethelp3.3/knn.htm | 54 +++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 sourcecodes/bnt-master/nethelp3.3/knn.htm (limited to 'sourcecodes/bnt-master/nethelp3.3/knn.htm') diff --git a/sourcecodes/bnt-master/nethelp3.3/knn.htm b/sourcecodes/bnt-master/nethelp3.3/knn.htm new file mode 100644 index 00000000..31f032bc --- /dev/null +++ b/sourcecodes/bnt-master/nethelp3.3/knn.htm @@ -0,0 +1,54 @@ + + + +Netlab Reference Manual knn + + + +

knn +

+

+Purpose +

+Creates a K-nearest-neighbour classifier. + +

+Synopsis +

+
+
+net = knn(nin, nout, k, tr_in, tr_targets)
+
+ + +

+Description +

+net = knn(nin, nout, k, tr_in, tr_targets) creates a KNN model net +with input dimension nin, output dimension nout and k +neighbours. The training data is also stored in the data structure and the +targets are assumed to be using a 1-of-N coding. + +

The fields in net are +

+
+  type = 'knn'
+  nin = number of inputs
+  nout = number of outputs
+  tr_in = training input data
+  tr_targets = training target data
+
+ + +

+See Also +

+kmeans, knnfwd
+Pages: +Index +
+

Copyright (c) Ian T Nabney (1996-9) + + + + \ No newline at end of file -- cgit 1.4.1