We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 036a514 commit 77798c2Copy full SHA for 77798c2
doc/source/index.rst
@@ -12,7 +12,7 @@ Contents:
12
:maxdepth: 2
13
14
intro
15
-
+ lmnn
16
17
18
doc/source/lmnn.rst
@@ -0,0 +1,18 @@
1
+Large Margin Nearest Neighbor (LMNN)
2
+=====================================
3
+
4
+todo: Brief desciption or a link.
5
6
+Example Code
7
8
+Using two different implementations:
9
10
+::
11
+ for LMNN_cls in set((LMNN, python_LMNN)):
+ lmnn = LMNN_cls(k=k, learn_rate=1e-6)
+ lmnn.fit(self.iris_points, self.iris_labels, verbose=False)
+ csep = class_separation(lmnn.transform(), self.iris_labels)
+ self.assertLess(csep, 0.25)
0 commit comments