ss8651twtw
2b597df94c
Add test cases for C1
2018-06-05 18:53:08 +08:00
ss8651twtw
233c51381c
Add test cases for C0
2018-06-05 16:40:41 +08:00
frozenkp
1875c711d7
add codecov badge
2018-06-04 16:26:42 +08:00
frozenkp
f7e204608d
script update
2018-06-04 16:20:22 +08:00
frozenkp
9ec4d8f850
script update
2018-06-04 14:53:43 +08:00
frozenkp
a826557c00
add codecov
2018-06-04 14:44:09 +08:00
frozenkp
b2ea4a0f43
add codecov
2018-06-04 14:32:53 +08:00
frozenkp
24e7acf862
ci test
2018-06-04 14:10:45 +08:00
frozenkp
97e423cf6f
ci test
2018-06-04 14:08:24 +08:00
Richard Townsend
d75f6bfdf8
Merge pull request #210 from pdarche/expectation_maximization
...
Implementation of Expectation Maximization algorithm
2018-05-20 00:58:23 +01:00
Peter Darche
fce9d27687
Implementation of Expectation Maximization algorithm
2018-05-14 16:54:01 -04:00
Richard Townsend
176d2d53a9
Merge pull request #207 from TocarIP/itocar/fast_forest
...
trees: speed-up training
2018-05-11 00:54:27 +01:00
Richard Townsend
8ed4d9fb25
Merge pull request #208 from sjwhitworth/drop-go-1.7
...
Drop support for Go 1.7
2018-05-11 00:52:49 +01:00
Richard Townsend
3df8f56a9f
Update .travis.yml
2018-05-11 00:44:19 +01:00
Ilya Tocar
676f69a426
trees: speed-up training
...
Avoid quadratic loop in getNumericAttributeEntropy.
We don't need to recalculate whole distribution for each split,
just move changed values. Also use array of slices instead of
map of maps of strings to avoid map overhead.
For our case I see time reductions from 100+ hours to 50 minutes.
I've added benchmark with synthetic data (iris.csv repeated 100 times)
and it also shows a nice improvement:
name old time/op new time/op delta
RandomForestFit-8 117s ± 4% 0s ± 1% -99.61% (p=0.001 n=5+10)
0 is a rounding quirk of benchstat, it should be closer to 0.5s:
name time/op
RandomForestFit-8 460ms ± 1%
2018-05-08 14:59:41 -05:00
Richard Townsend
623af61265
Merge pull request #206 from Sentimentron/gonum
...
Update gonum to the latest version
2018-03-24 00:32:46 +00:00
Richard Townsend
7ade2974fa
travis: fix golang version format
2018-03-24 00:23:10 +00:00
Richard Townsend
eca9d9f7ba
travis: test more recent versions
2018-03-24 00:21:08 +00:00
Richard Townsend
2428dfa7de
Fix various other little errors
2018-03-24 00:20:45 +00:00
Richard Townsend
ff52c013eb
Update gonum to latest version
...
Should fix #200 and #205
2018-03-24 00:19:35 +00:00
Richard Townsend
40a50346ae
Merge pull request #201 from yakud/pca_fit_transform
...
PCA fit method
2018-03-23 23:25:54 +00:00
Richard Townsend
bcbb174acc
Merge pull request #203 from chneau/master
...
Fix #169 wrong Mutex Lock
2018-03-23 23:25:10 +00:00
Charles N
e9a8d4a005
Fix #169 wrong Mutex Lock
2018-03-14 13:13:17 +00:00
Aleksei Kiselev
8e81a4b6d2
PCA fit method
2018-02-27 11:39:57 +02:00
Richard Townsend
99626ce479
Merge pull request #191 from Sentimentron/serialization
...
Add support for saving and loading classifiers
2018-02-03 18:29:10 +00:00
Richard Townsend
57aa61698c
base: CREAT => CREATE
2018-01-28 22:55:17 +00:00
Richard Townsend
a3dab5ec13
base: try to correct 'no such file or directory' error
2018-01-28 16:36:21 +00:00
Richard Townsend
58ae6f4d1b
trees: Try to fix premature write-after-Close issue
2018-01-28 16:35:55 +00:00
Richard Townsend
e2279995c1
Fixing all tests
2018-01-28 16:22:33 +00:00
Richard Townsend
ce78cd0406
Passes the tests
2018-01-27 18:56:01 +00:00
Richard Townsend
f722f2e59d
trees: implement serialization
2018-01-27 18:00:52 +00:00
Richard Townsend
dede6dc750
Do not actively test go versions < 1.7
2018-01-27 17:53:44 +00:00
Etienne Bruines
7a6fa54353
Made versions of CSV-readers w/ io.ReadSeeker
...
Each method now ontains a -FromReader counterpart
such that it'll allow use of those helper-methods
even when someone does not have his data in a physical
file. The original methods make use of those -FromReader
methods.
The reader is being reset (Seek(0, 0)) before every method-
specific read, to ensure it's reading from the start of the
reader.
Test cases are not yet touched, and I'm not sure they should.
2018-01-27 17:53:44 +00:00
Richard Townsend
d2c70d74e0
Merge pull request #193 from EtienneBruines/file_to_reader
...
Made versions of CSV-readers w/ io.ReadSeeker
2017-09-30 12:37:27 +01:00
Etienne Bruines
db086a864e
Made versions of CSV-readers w/ io.ReadSeeker
...
Each method now ontains a -FromReader counterpart
such that it'll allow use of those helper-methods
even when someone does not have his data in a physical
file. The original methods make use of those -FromReader
methods.
The reader is being reset (Seek(0, 0)) before every method-
specific read, to ensure it's reading from the start of the
reader.
Test cases are not yet touched, and I'm not sure they should.
2017-09-29 09:48:33 +02:00
Richard Townsend
e7fee0a2d1
Reformat, fix tests
2017-09-10 21:10:54 +01:00
Richard Townsend
fc110aab48
Fix bad import, reformat
2017-09-10 20:35:34 +01:00
Richard Townsend
aee475ca14
Fix the trees tests
2017-09-10 20:13:41 +01:00
Richard Townsend
44e4c4fbef
Naive: serialiation implemented, tests pass
2017-09-10 20:10:53 +01:00
Richard Townsend
e27215052b
ensemble: tests pass
2017-09-10 19:30:02 +01:00
Richard Townsend
3e80230d3d
meta: passes the tests, seems to be flaky
2017-09-10 18:24:40 +01:00
Richard Townsend
c18d50d217
meta: tests passing
2017-09-10 17:43:17 +01:00
Richard Townsend
768d2cd19f
meta: tests are almost passing
2017-09-10 16:59:05 +01:00
Richard Townsend
43f04021af
knn: tests now passing
2017-09-09 20:07:56 +01:00
Richard Townsend
72c2005e70
All tests are passing again
2017-09-09 19:58:57 +01:00
Richard Townsend
007af15658
Merging SerializableClassifier with Classifier
2017-09-09 13:38:02 +01:00
Richard Townsend
ead76bdd7e
I think I'm going to refocus this whole thing
2017-09-09 12:31:32 +01:00
Richard Townsend
57e6054404
base: fix unmarshalling attributes, add JSON
2017-08-26 14:56:31 +01:00
Richard Townsend
499ac7a493
base: fix unmarshalling attributes, add JSON
2017-08-26 14:56:17 +01:00
Richard Townsend
127a8e9162
base: method to get a SaveableClassifer's metadata
2017-08-26 14:55:12 +01:00