1
0
mirror of https://github.com/sjwhitworth/golearn.git synced 2025-05-01 22:18:10 +08:00

577 Commits

Author SHA1 Message Date
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
Stephen Whitworth
dc96e818d8 Made a start on gradient descent 2014-05-05 02:39:00 +01: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
Stephen Whitworth
b4abf54c07 Changing comments to play nicely with godoc 2014-05-04 09:57:57 +01:00
Stephen Whitworth
73e7df1ef0 Refactored KNN 2014-05-04 09:53:53 +01:00
Stephen Whitworth
99b7f26f09 Merge branch 'master' of https://github.com/sjwhitworth/golearn into docs 2014-05-04 09:52:27 +01:00
Stephen Whitworth
82e5bf014f Refactored knn 2014-05-04 09:52:13 +01:00
Stephen Whitworth
7090138b88 Update golearn.go 2014-05-04 09:49:20 +01:00
Stephen Whitworth
ea3b3842c9 Update utilities.go 2014-05-04 09:48:00 +01:00
Stephen Whitworth
aee7e69e7b Update knn.go 2014-05-04 09:39:21 +01:00
Stephen Whitworth
a92d830ec3 Update golearn.go 2014-05-04 09:38:35 +01:00
Stephen Whitworth
71e9a8502c Update golearn.go 2014-05-04 09:37:02 +01:00
Stephen Whitworth
be7ac21a55 Update README.md 2014-05-04 09:31:31 +01:00
Stephen Whitworth
79e240df3d Update README.md 2014-05-04 09:30:38 +01:00
Stephen Whitworth
94077bd6db Merge pull request #18 from sjwhitworth/interfaces
KNN, Metrics and interface design
2014-05-04 09:22:31 +01:00
Stephen Whitworth
822b4c389f Finished an implementation of KNN 2014-05-03 23:08:43 +01:00
Stephen Whitworth
0c4d803b5b Update README.md 2014-05-03 18:38:20 +01:00
Stephen Whitworth
7b741964f3 Update README.md 2014-05-03 18:36:08 +01:00
Stephen Whitworth
a903ad288e Merge pull request #15 from nbsantos/cross-validation
Cross validation
2014-05-03 17:52:12 +01:00
Stephen Whitworth
798751c839 Merge pull request #12 from sjwhitworth/metrics
Metrics
2014-05-03 17:37:51 +01:00
Nelson Santos
779ad2842e Moved to own package and added concurrency support
Moved the function to the cross_validation package. Also modified the
shuffling function to run concurrently.
2014-05-03 12:01:38 -04:00
Bert Chang
551dfc8cc1 Add doc link to README. 2014-05-03 23:06:28 +08: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
Nelson Santos
030d9844c6 Added Mac and IntelliJ files to gitignore. 2014-05-02 22:38:45 -04:00
Nelson Santos
b09a1cecae Refactored function to use mat64.
Changed most of the actual matrix operations to use the mat64 library.
2014-05-02 22:38:15 -04:00
Nelson Santos
2b6249775f Started working on cross-validation tools.
Created TrainTestSplit function to split train and test datasets.
2014-05-02 20:50:14 -04: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
6157cb836a Temp change some code so we can build via goconvey. 2014-05-02 22:30:40 +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
Stephen Whitworth
4fead571ae Refactored the KNN regressor 2014-05-01 21:20:44 +01:00
Stephen Whitworth
8f1de1ba2c Refactoring some stuff 2014-05-01 19:56:30 +01:00
Stephen Whitworth
779a915652 Resize studious gopher 2014-05-01 08:26:32 +01:00
Stephen Whitworth
c4bbc02cb3 Update README.md 2014-05-01 08:26:04 +01:00
Stephen Whitworth
1c34b4661a Update README.md 2014-05-01 08:25:57 +01:00
Stephen Whitworth
86d31d02cf Update README.md 2014-05-01 08:25:12 +01:00
Stephen Whitworth
1a7cce51d3 Add studious gopher 2014-05-01 08:24:22 +01:00
Stephen Whitworth
b29f8a7fdf Refactoring 2014-05-01 07:46:13 +01:00
Stephen Whitworth
e27f25f62b Merge pull request #8 from sjwhitworth/organizing
Add package file, rewrite import.
2014-05-01 07:24:59 +01:00