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

315 Commits

Author SHA1 Message Date
Bert Chang
4bda400c66 Merge pull request #49 from njern/golint
Apply Golint and go vet.
2014-07-18 21:21:35 +08:00
Niclas Jern
5d00d8942e Overeagerly replaced an Error() with Errorf(). 2014-07-18 16:15:19 +03:00
Niclas Jern
fabb2a6007 arg t.Frequency for printf verb %s of wrong type: map[string]int 2014-07-18 14:05:28 +03:00
Niclas Jern
e060684a29 Passing parameters to Error() as if it was Errorf() 2014-07-18 14:04:59 +03:00
Niclas Jern
13da7d0cac error strings should not be capitalized 2014-07-18 14:00:22 +03:00
Niclas Jern
90106077cc base/instances.go:145:21: error strings should not end with punctuation 2014-07-18 13:59:00 +03:00
Niclas Jern
716bddc46a receiver name should be a reflection of its identity; dont use generic names such as "me", "this", or "self" 2014-07-18 13:58:07 +03:00
Niclas Jern
e714470814 receiver name b should be consistent with previous receiver name c for ChiMergeFilter 2014-07-18 13:55:17 +03:00
Niclas Jern
8f154559f1 receiver name Inst should be consistent with previous receiver name inst for Instances 2014-07-18 13:50:12 +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
Niclas Jern
32f36f28c3 if block ends with a return statement -> drop this else and outdent its block 2014-07-18 13:20:46 +03:00
Niclas Jern
daac7a278d Omit unused second value from range statements. 2014-07-18 13:17:19 +03:00
Stephen Whitworth
fbc7df8c2c Merge pull request #46 from Sentimentron/build-fix
Trying to fix the Travis build
2014-07-07 08:13:26 +01:00
Richard Townsend
94a562be35 Uses the system version of liblinear
Conflicts:
	linear_models/liblinear.go
2014-07-03 10:09:48 +01:00
Richard Townsend
9ce6ec5afe Trying to fix Travis 2014-07-03 10:00:10 +01:00
Richard Townsend
56cb8a4bb0 Fixed an installation problem 2014-07-02 22:44:46 +01:00
Richard Townsend
57ea53af7c liblinear: Hopefully fixed the go get error 2014-07-02 21:30:27 +01:00
Richard Townsend
477438d972 linear_models: More idiomatic 2014-07-02 15:50:08 +01:00
Richard Townsend
521844cbb2 base: handling spaces between entries 2014-07-02 15:48:14 +01:00
Richard Townsend
67d0ec164e liblinear: additional fixes 2014-07-02 15:03:27 +01:00
Richard Townsend
57c9d07349 Merge pull request #23 from npbool/linear
Logistic Regression
2014-07-02 15:02:19 +01:00
Thiago Cardoso
94ef107fc8 Removed class prior pre-calculation
Since the number of instances in each class are stored, there is no need
to keep the pre-calculated priors.
2014-06-08 00:01:42 -03:00
Thiago Cardoso
0cf6d258e6 Merge branch 'master' into feature/naive 2014-06-07 23:46:07 -03:00
Bert Chang
d247bc18ea Merge pull request #42 from nairboon/master
use multiple return values instead of an array in InstancesTrainTestSplit
2014-06-07 09:52:25 +08:00
Remo Hertig
f77c1dcde0 use multiple return values instead of an array in InstancesTrainTestSplit 2014-06-06 21:33:17 +02:00
Richard Townsend
8cc8aeac60 Merge pull request #41 from hpxro7/bug/shuffle
Fixed incorrect instance shuffling algorithm.
2014-06-06 12:11:36 +01:00
hpxro7
a54d473cdd Fixed incorrect instance shuffling algorithm. 2014-06-05 21:54:57 -07:00
Bert Chang
e5a9ae4af2 Merge pull request #38 from penberg/travis-banner
Add Travis CI banner to README
2014-05-31 16:24:57 +08:00
Bert Chang
bbcb4ef440 Merge pull request #37 from penberg/travis-cblas
Install libatlas-base-dev for Blas package
2014-05-31 16:24:37 +08:00
Pekka Enberg
45b91dad87 Install libatlas-base-dev for Blas package
The Go blas package requires libcblas to be present on the system.
Travis environments run Ubuntu Linux so we need to install
libatlas-base-dev.

Signed-off-by: Pekka Enberg <penberg@iki.fi>
2014-05-31 11:08:16 +03:00
Pekka Enberg
4c6355f192 Add Travis CI banner to README
Signed-off-by: Pekka Enberg <penberg@iki.fi>
2014-05-31 10:52:17 +03:00
Stephen Whitworth
4fa0698748 Merge pull request #33 from Sentimentron/randomforests-upstream
ID3 and random decision trees and random forests
2014-05-24 10:01:38 +01:00
Richard Townsend
4fd88d834f @mish15's re-write of Predict() 2014-05-23 12:19:10 +01:00
Richard Townsend
ce2afe34fb Benchmarking 2014-05-23 12:16:11 +01:00
Thiago Cardoso
90458d92ed Added Predict function
Added predict function along with its test. Current interface is the
same of the KNN example. In other words, only the class string is
returned from the PredictOne function.
2014-05-20 22:59:03 -03:00
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
Richard Townsend
7a33d2b9b2 Making Fit() more idiomatic 2014-05-20 09:06:59 +01:00
Richard Townsend
61f65e04aa Merge branch 'randomforests-upstream' of github.com:Sentimentron/golearn into randomforests-upstream 2014-05-19 12:59:25 +01:00
Richard Townsend
a6072ac9de Package documentation 2014-05-19 12:59:11 +01:00
Richard Townsend
889fec4419 Examples for RandomForest, ID3 and Random trees 2014-05-19 12:42:03 +01: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
Richard Townsend
ab39d0c972 Fixed race conditions 2014-05-18 20:59:46 +01:00
Richard Townsend
45ca6063f1 Not sure if this bagging version is better or not
More more similar to "Attribute bagging:improving accuracy of classifier ensembles by using random feature subsets" (Brill)
2014-05-18 11:49:35 +01:00
Richard Townsend
1b0e2dce7c Correction to randomisation and train-test split 2014-05-18 11:23:32 +01: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
Richard Townsend
26660e1470 Corrected a problem with pruning, actual ID3 decision tree type
Going to modify Bagging to select attributes on its own
2014-05-17 21:45:26 +01:00