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

315 Commits

Author SHA1 Message Date
Anzel Lai
481da97eca Fix go vet complaints 2016-06-14 00:56:47 +01:00
Stephen Whitworth
3fbf507799 Merge pull request #137 from Sentimentron/fix-travis
Travis: drop support for go 1.3
2016-05-21 19:16:26 +01:00
Richard Townsend
71c761e7df Travis: drop support for go 1.3
Fixes #133 and #134, temporary workaround for #129 so we can continue
testing.
2016-05-21 18:59:06 +01:00
Stephen Whitworth
7912498413 Merge pull request #130 from briansorahan/master
add dockerfile
2016-04-15 07:57:55 +01:00
Stephen Whitworth
e8ce77bb05 Merge pull request #113 from grahamannett/patch-1
added softplus relu
2016-04-15 07:57:23 +01:00
Brian Sorahan
5fc488daff add dockerfile 2016-04-14 17:36:31 -05:00
Richard Townsend
07485b621d Merge pull request #127 from cratonica/master
Fix breakage due to gonum/matrix mat64.ErrShape
2015-10-26 17:17:18 +00:00
Clint Caywood
d9d15fb735 Fix breakage due to gonum/matrix mat64.ErrShape 2015-10-24 22:44:24 -07:00
Richard Townsend
51ca101d6c Merge pull request #118 from thedadams/master
Fix KNN if all Attributes are FloatAttribute
2015-10-17 22:50:04 +01:00
Donnie Adams
bce1f15444 Update knn.go to allow all FloatAttributes. 2015-10-17 10:56:18 -07:00
Richard Townsend
ca0dea204e Merge pull request #121 from Sentimentron/dbscan
clustering: creates the package and implements DBSCAN
2015-10-17 12:38:12 +01:00
Richard Townsend
986cd230f9 clustering: creates the package and implements DBSCAN
Verified against scikit-learn's implementation (gen_test.py)
2015-10-10 20:20:33 +01:00
Richard Townsend
6ed783530a Merge pull request #120 from EtienneBruines/master
Updated Dot and Sum methods according to changes in gonum/matrix.
2015-09-25 19:03:32 +01:00
Etienne Bruines
336b94fee8 Updated Dot and Sum methods according to changes in gonum/matrix.
Fixes #119.
2015-09-24 17:50:34 +02:00
Richard Townsend
d1140a3519 Merge pull request #117 from Sentimentron/mat64-update
Update to the latest version of gonum's API
2015-09-19 11:23:04 +01:00
Richard Townsend
929d7d40ac travis: drop support for go 1.2
gonum needs sync.Pool which go 1.2 doesn't have (according to the Travis
log anyway).
2015-09-13 11:46:22 +01:00
Richard Townsend
23adc9ec25 neural: update to new mat64 API 2015-09-13 11:24:09 +01:00
Richard Townsend
918a8c99ba pairwise: update to latest mat64 API 2015-09-13 11:24:00 +01:00
Richard Townsend
c16fade796 linear_moddels: update to latest mat64 API 2015-09-13 11:23:55 +01:00
Richard Townsend
03dbdf75ad Merge pull request #115 from nickpoorman/master
Removed decimal precision formatting from String() string for MultiLayerNet.
2015-07-14 14:14:58 +01:00
Nick Poorman
8507a0cba8 Removed decimal precision formatting from String() string for MultiLayerNet.
Convergence and LearningRate values less than 0.00, ie. 0.003, were being printed as 0.00 which was incredibly misleading when debugging.
2015-07-13 18:30:27 -04:00
Richard Townsend
88e577bd01 Merge pull request #114 from Sentimentron/travis-fix
metrics/pairwise: correct goconvey-related problem
2015-05-26 23:54:35 +01:00
Richard Townsend
581451d726 metrics/pairwise: correct goconvey-related problem
goconvey's ShouldPanicWith never seems to succeed,
this patch weakens the condition to ShouldPanic.
2015-05-26 23:43:35 +01:00
graham
5e631a49c8 added softplus relu 2015-05-26 15:20:55 -07:00
Stephen Whitworth
008c441e4c Update README.md 2015-05-06 07:39:21 +01:00
Stephen Whitworth
2b6533e659 Merge pull request #109 from sjwhitworth/fix_breaking_changes
Fixing broken Travis build, with slight refactor.
2015-01-27 13:35:37 +00:00
Stephen Whitworth
092917dee9 Temporarily removing test 2015-01-27 13:24:40 +00:00
Stephen Whitworth
06fc522b20 Merge pull request #104 from Sentimentron/serialise-fix
base: correct some non-deterministic serialisation test behaviour
2015-01-27 13:16:33 +00:00
Stephen Whitworth
183c672cfe Hopefully, should build now. 2015-01-27 12:32:19 +00:00
Stephen Whitworth
545ec789c4 Merge pull request #105 from savorywatt/perceptron
Perceptron
2015-01-27 09:52:43 +00:00
Richard Townsend
04e6c8a414 Rebasing against master 2015-01-15 22:54:16 +00:00
Ross Hendrickson
5c302a11ea Add average perceptron file
Rough out logic flow for an average perceptron

Fleshed out example data. Working on FixedDataGrid
support.

Dont use Binary use Float

Update processData to use base helpers to read csv

Move class to end of feature list

Add test for processData

process data to instances

Create path fixed

Add test around Fit. First steps

Modified example, added tests, small fixes
2015-01-15 22:54:16 +00:00
Richard Townsend
a250e99644 base: correct some non-deterministic serialisation test behaviour 2015-01-15 22:45:05 +00:00
Richard Townsend
dbf1c9a6b3 Merge pull request #103 from mtchavez/fix/readme
Fix example in README
2014-12-22 19:18:16 +00:00
Chavez
3d1384b78c Pass false for header on iris dataset in README example 2014-12-22 08:32:14 -08:00
Chavez
4988a1e8bc Fix example in README 2014-12-21 19:09:43 -08:00
Stephen Whitworth
353cd38e7c Merge pull request #98 from Sentimentron/dense-staging
New DenseInstances conversion function
2014-11-21 13:53:52 +00:00
Stephen Whitworth
7ea42ac80b Merge pull request #101 from Sentimentron/arff-staging
ARFF import/export, CSV export, lossless serialisation
2014-11-21 13:53:43 +00:00
Stephen Whitworth
9c7049ba89 Merge pull request #90 from Sentimentron/cross-fold-staging
Cross-fold validation
2014-11-21 13:53:29 +00:00
Stephen Whitworth
aeb12bd0c7 Merge pull request #99 from Sentimentron/params-staging
MultiLinearSVC class weights
2014-11-21 13:53:00 +00:00
Richard Townsend
e30ff6580a ARFF import/export, CSV export, serialisation
* Only numeric and categorical ARFF attributes are currently supported.
* Only the dense version of the ARFF format is supported.
* Compressed format is .tar.gz file which should allow extensibility.
    * Attributes stored using JSON representations.
* Also offers smarter estimation of the precision of numeric Attributes.
* Also adds support for writing instances to CSV
2014-11-13 20:09:00 +00:00
Richard Townsend
ec846e62d2 Merge pull request #100 from pontusmelke/use-apply
Rewrote gradient descent to use Apply for scalar matrix multiplication.
2014-11-06 09:50:17 +00:00
Pontus Melke
6a04b01f3e Rewrote gradient descent to use Apply for scalar matrix multiplication. 2014-11-06 08:22:18 +01:00
Richard Townsend
8fe06e7332 Support for individual class weightings 2014-10-30 23:28:26 +00:00
Richard Townsend
6929052af0 base: conversion to DenseInstances via DenseCopyOf 2014-10-30 22:10:39 +00:00
Richard Townsend
1e888d2a97 base: More general version of equality 2014-10-30 22:02:38 +00:00
Stephen Whitworth
056ccef9b6 Merge pull request #91 from Sentimentron/numeric-staging
trees: Handling FloatAttributes.
2014-10-27 07:56:19 +00:00
Richard Townsend
b2f5b2840d Cross-fold validation 2014-10-26 17:48:48 +00:00
Richard Townsend
7ba57fe6df trees: Handling FloatAttributes.
This patch adds:

	* Gini index and information gain ratio as
           DecisionTree split options;
	* handling for numeric Attributes (split point
           chosen naïvely on the basis of maximum entropy);
	* A couple of additional utility functions in base/
	* A new dataset (see sources.txt) for testing.

Performance on Iris performs markedly without discretisation.
2014-10-26 17:40:38 +00:00
Stephen Whitworth
fcb96f1fad Merge pull request #87 from Sentimentron/knn-opt-staging
Optimised version of KNN for Euclidean distances
2014-10-12 08:59:40 +01:00