1
0
mirror of https://github.com/sjwhitworth/golearn.git synced 2025-04-28 13:48:56 +08:00

28 Commits

Author SHA1 Message Date
Richard Townsend
47341b2869 base: Cleaned up duplicate Attribute resolution functions 2014-08-03 15:17:20 +01:00
Richard Townsend
5d7a37581a knn: merge from v2-instances 2014-08-03 15:17:05 +01:00
Niclas Jern
779551ee86 One must always convert one's vectors 2014-07-20 20:20:37 +03:00
Niclas Jern
cbb4ae33f8 When the user picks manhattan distance, we should actually use the Manhattan distance function. Also slight refactor to make the code more DRY. 2014-07-20 10:20:28 +03:00
Niclas Jern
627a5537d3 Comments should be of the form "<Struct> ..." or "<MethodName> ..." 2014-07-18 13:48:28 +03:00
Niclas Jern
4d7bc20a36 Should replace "val += 1" with "val++" 2014-07-18 13:25:18 +03:00
Richard Townsend
a2c67592df Adds Instances and Attributes type
* Refactors KNNClassifier to use them
* csv handling moved back into base due to a circular dependency
* Also adds the datasets used to test CSV handling
2014-05-13 22:08:11 +01:00
Stephen Whitworth
1ade0afca6 Refactored KNN to implement the estimator interface 2014-05-05 22:41:55 +01:00
Stephen Whitworth
cd43a6565d Implemented batch and stochastic gradient descent 2014-05-05 21:40:33 +01: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
82e5bf014f Refactored knn 2014-05-04 09:52:13 +01:00
Stephen Whitworth
aee7e69e7b Update knn.go 2014-05-04 09:39:21 +01:00
Stephen Whitworth
822b4c389f Finished an implementation of KNN 2014-05-03 23:08:43 +01:00
Bert Chang
6157cb836a Temp change some code so we can build via goconvey. 2014-05-02 22:30:40 +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
Bert Chang
0c2187763f Add package file, rewrite import. 2014-04-30 22:13:07 +08:00
Stephen Whitworth
e1663eefa8 Starting interface design 2014-04-30 08:57:13 +01:00
Stephen Whitworth
0e86db820e Added KNN Regressor 2014-01-05 00:23:31 +00:00
Stephen Whitworth
334c12385e Added example documentation 2014-01-04 19:31:33 +00:00
Stephen Whitworth
874fc5314d Split it out, created iris example, debugged KNN 2014-01-04 19:14:36 +00:00
Stephen Whitworth
f1d51412ef Move to subclassing 2014-01-04 11:12:06 +00:00
Stephen Whitworth
4e81045015 Tidying up 2013-12-29 00:03:42 +00:00
Stephen Whitworth
cc69c1ab2f Added documentation 2013-12-28 23:48:12 +00:00
Stephen Whitworth
6366d3fa65 KNN Classifier now works 2013-12-28 18:41:13 +00:00
Stephen Whitworth
7c0349c713 Removed binary 2013-12-28 10:00:57 +00:00
Stephen Whitworth
3a144dd01c KNN nearly working 2013-12-28 10:00:20 +00:00