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

107 Commits

Author SHA1 Message Date
Thiago Cardoso
86b18fe1c9 Finished Fit test for simple cases
Added the logCondProb tests for a simple test case with two classes.
2014-05-20 21:41:57 -03:00
Thiago Cardoso
45e229be12 Refactoring for base.Instances
Refactored the algorithm to use base.Instances. Rewrote the Fit method
to pre-calculate priors and conditional probabilities.
2014-05-18 23:23:51 -03:00
Thiago Cardoso
888dfc7e6d Merge branch 'master' into feature/naive 2014-05-18 21:54:32 -03:00
Stephen Whitworth
5d1039f3d0 Merge pull request #32 from sjwhitworth/travis
Travis
2014-05-17 22:32:28 +01:00
Stephen Whitworth
6cc6900da7 Shut up Travis 2014-05-17 21:50:53 +01:00
Stephen Whitworth
7c3e86d06c Added travis build command 2014-05-17 21:48:42 +01:00
Stephen Whitworth
b70e2a318a Fixing up stuff for Travis 2014-05-17 21:41:10 +01:00
Stephen Whitworth
60cff544b8 Merge branch 'docs' into travis 2014-05-17 21:38:01 +01:00
Stephen Whitworth
22ab4092e7 Fixing up stuff for Travis 2014-05-17 21:33:48 +01:00
Stephen Whitworth
829f98b0a0 Update README.md 2014-05-17 21:20:34 +01:00
Stephen Whitworth
f5cd616f47 Update README.md 2014-05-17 21:19:31 +01:00
Stephen Whitworth
0fc6fb7cfa Update README.md 2014-05-17 21:19:18 +01:00
Stephen Whitworth
cc4d6a60ef Added some starter documentation. 2014-05-17 21:17:57 +01:00
Stephen Whitworth
697fbde085 Rename travis.yml to .travis.yml 2014-05-17 20:34:15 +01:00
Stephen Whitworth
085b8e2a30 Create travis.yml 2014-05-17 20:32:40 +01:00
Stephen Whitworth
f22c62f1ed Update README.md 2014-05-17 20:32:04 +01:00
Stephen Whitworth
c68e2eed28 Merge pull request #29 from Sentimentron/discretisation-upstream
Equal-width and Chi-merge discretisation
2014-05-16 08:05:12 +01:00
Richard Townsend
f59cac6345 Equal-width and Chi-merge discretisation 2014-05-13 22:45:52 +01:00
Richard Townsend
c6972988ee Merge pull request #27 from Sentimentron/instances
Adds Attributes and Instances
2014-05-13 22:22:17 +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
Thiago Cardoso
0035dd184e Bernoulli Naive Bayes: first draft
This is the first draft of the bernoulli naive bayes implementation. It
is missing the Fit function tests and the Predict function.
2014-05-11 21:00:28 -03:00
Stephen Whitworth
9f3d9eaa64 Update linear_regression.go
Removing merge conflict.
2014-05-06 23:13:02 +01:00
Stephen Whitworth
d069d68d05 Merge branch 'master' of https://github.com/sjwhitworth/golearn 2014-05-05 22:49:06 +01:00
Stephen Whitworth
1ade0afca6 Refactored KNN to implement the estimator interface 2014-05-05 22:41:55 +01: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
Stephen Whitworth
3eaeafd0dc Merge branch 'feature/ifesdjeen/distances2' of https://github.com/sjwhitworth/golearn into optimisation 2014-05-05 21:57:08 +01:00
Stephen Whitworth
7e8eb70cd1 Implemented batch and stochastic gradient descent 2014-05-05 21:40:51 +01:00
Stephen Whitworth
cd43a6565d Implemented batch and stochastic gradient descent 2014-05-05 21:40:33 +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
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