1
0
mirror of https://github.com/sjwhitworth/golearn.git synced 2025-04-26 13:49:14 +08:00

23 Commits

Author SHA1 Message Date
Niclas Jern
716bddc46a receiver name should be a reflection of its identity; dont use generic names such as "me", "this", or "self" 2014-07-18 13:58:07 +03:00
Niclas Jern
627a5537d3 Comments should be of the form "<Struct> ..." or "<MethodName> ..." 2014-07-18 13:48:28 +03:00
Niclas Jern
32f36f28c3 if block ends with a return statement -> drop this else and outdent its block 2014-07-18 13:20:46 +03:00
Stephen Whitworth
3850153945 Merge pull request #20 from sjwhitworth/feature/ifesdjeen/distances2
Remeake of my previous distances branch
2014-05-05 22:17:23 +01:00
Alex Petrov
93894245ad Change wording for Eucledian Distance comments 2014-05-05 22:30:04 +02:00
Bert Chang
1e21802d2e Use AlmostEqual for numerical comparison. 2014-05-05 23:28:49 +08:00
Alex Petrov
1d250aab6b Remove unused subVector calls 2014-05-05 08:45:29 +02:00
Alex Petrov
13327e9250 Run goftm on all files ti fix indentation 2014-05-05 08:32:38 +02:00
Alex Petrov
ad77c0dc7e Add Chebyshev and Cranberra distances, improve Manhattan distance
Previously, Manhattan distance measure was only able to calculate
vector distances. Now, it's possible to calculate distances on
matrices, too, without unnecessary overhead of copying vectors,
doing an in-place lookups.
2014-05-04 23:11:37 +02:00
Alex Petrov
1c22641a3b Fix manhattan distance calculation 2014-05-04 22:58:32 +02:00
Bert Chang
1ec702a1e5 Add documents. 2014-05-03 23:05:24 +08:00
Bert Chang
9a61332551 Make manhattan support both col&row vectors. 2014-05-03 22:47:41 +08:00
Bert Chang
b045cf83a5 Add manhattan distance. 2014-05-03 22:27:34 +08:00
Bert Chang
6517c838c4 Add basic PolyKernel and RBFKernel test. 2014-05-03 22:02:39 +08:00
Bert Chang
83faf52273 Remove examples, remove CheckDimMatch. 2014-05-03 15:29:07 +08:00
Bert Chang
0b85e5d752 Migrate to mat64 in poly_kernel. 2014-05-03 01:19:12 +08:00
Bert Chang
985ccc9d19 We don't need to manually handle error anymore. 2014-05-03 01:07:33 +08:00
Bert Chang
804cd82cfc Use gonum/matrix/mat64, life is easier. 2014-05-03 00:56:28 +08:00
Bert Chang
4fc0ed0477 Add euclidean distance test. 2014-05-02 23:49:06 +08:00
Bert Chang
921efaffc7 Add basic test to euclidean. 2014-05-02 23:30:12 +08:00
Bert Chang
6211206b73 Remove Metric interface, add RBFKernel. 2014-05-02 21:10:55 +08:00
Bert Chang
b473ff6881 Add metric interface, add polynomial kernel. 2014-05-02 20:09:54 +08:00
Bert Chang
0eaf944764 We will need to implement many metrics, so we should split it into a package. 2014-05-02 18:10:20 +08:00