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

8 Commits

Author SHA1 Message Date
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