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

14 Commits

Author SHA1 Message Date
Richard Townsend
fc110aab48 Fix bad import, reformat 2017-09-10 20:35:34 +01:00
Richard Townsend
43f04021af knn: tests now passing 2017-09-09 20:07:56 +01:00
FrozenKP
7b765a2f18 add kdtree to knn 2017-04-17 15:20:31 +08:00
Tim Lebel
1d77ccdec6 Return errors allowing KNNClassifier to implement Classifier 2016-10-10 19:59:47 -07:00
Richard Townsend
f339111871 knn: adding additional test case 2016-07-11 23:27:04 +01:00
Richard Townsend
7041fc33c7 base: correct handling of class attributes in ParseCSVToTemplatedInstances 2016-07-11 23:16:18 +01:00
Richard Townsend
457a00ac7c knn: replicating issue #143 in test suite 2016-07-11 23:05:03 +01:00
Richard Townsend
063aab5c3c knn: making space for additional test data 2016-07-11 23:01:28 +01:00
Richard Townsend
527c6476e1 Optimised version of KNN for Euclidean distances
This patch also:
   * Completes removal of the edf/ package
   * Corrects an erroneous print statement
   * Introduces two new CSV functions
      * ParseCSVToInstancesTemplated makes sure that
        reading a second CSV file maintains strict Attribute
        compatibility with an existing DenseInstances
      * ParseCSVToInstancesWithAttributeGroups gives more control
        over where Attributes end up in memory, important for
        gaining predictable control over the KNN optimisation
      * Decouples BinaryAttributeGroup from FixedAttributeGroup for
        better casting support
2014-09-30 23:10:22 +01:00
Amit Kumar Gupta
9f67f73330 Convert some tests to goconvey, and improve assertions along the way 2014-08-22 13:39:29 +00:00
Amit Kumar Gupta
36048a9922 Fix error in test description for KnnClassifier 2014-08-20 05:54:28 +00:00
Richard Townsend
5d7a37581a knn: merge from v2-instances 2014-08-03 15:17:05 +01: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
822b4c389f Finished an implementation of KNN 2014-05-03 23:08:43 +01:00