Commit Graph

242 Commits

Author SHA1 Message Date
Arkadiusz Kondas
6d11116994 Fix default prameters values 2016-12-06 08:55:52 +01:00
Arkadiusz Kondas
9764890ccb Change floatvar to float casting (up to 6 times faster) 2016-12-06 08:52:33 +01:00
Arkadiusz Kondas
d00b7e5668 Secure uniqid usage 2016-12-06 08:50:18 +01:00
Arkadiusz Kondas
a61704501d Fix type compatibility for Minkowski distance 2016-12-06 08:48:45 +01:00
Arkadiusz Kondas
c4f0d1e3b0 Make csv reader binary safe 2016-12-06 08:46:55 +01:00
Arkadiusz Kondas
12d0adda62 Increase iterations number in Backpropagation test (sometimes it fails) 2016-11-20 22:56:18 +01:00
Arkadiusz Kondas
cbdc049526 Update php-cs-fixer 2016-11-20 22:53:17 +01:00
Arkadiusz Kondas
bca2196b57 Prevent Division by zero error in classification report 2016-11-20 22:49:26 +01:00
Arkadiusz Kondas
b226a561cb Merge pull request #25 from seahken/patch-1
Update array-dataset.md
2016-11-04 09:03:50 +01:00
Ken Seah
8a0a9f09e2 Update array-dataset.md
Method has already changed name to getTargets() instead of getLabels()
2016-11-04 00:03:49 +11:00
Arkadiusz Kondas
93cbac2753 Merge pull request #24 from itcraftsmanpl/r2
Fix documentation badge
2016-10-25 20:14:55 +02:00
Arkadiusz Kondas
af2c249241 Update changelog 2016-10-15 20:54:41 +02:00
Arkadiusz Kondas
452626d9c4 Fix documentaion badge 2016-10-15 20:50:16 +02:00
Arkadiusz Kondas
349ea16f01 Rename demo datasets and add Dataset suffix 2016-09-30 14:02:08 +02:00
Arkadiusz Kondas
84af842f04 Fix division by zero in ClassificationReport #21 2016-09-27 20:07:21 +02:00
Arkadiusz Kondas
1ce6bb544b Run php-cs-fixer 2016-09-21 21:51:19 +02:00
Arkadiusz Kondas
8072ddb2bf Update phpunit to 5.5 2016-09-21 21:46:16 +02:00
Arkadiusz Kondas
68a86f71b8 Merge pull request #23 from pflorek/feature-add-index-entries
Add index entries
2016-09-19 21:53:28 +02:00
Patrick Florek
1ff455ebed Add index entries 2016-09-17 22:06:13 +02:00
Arkadiusz Kondas
3a7ccbc055 Merge pull request #22 from pflorek/feature-set
Add new class Set for simple Set-theoretical operations
2016-09-10 18:37:55 +02:00
Patrick Florek
fa87eca375 Add new class Set for simple Set-theoretical operations
### Features

* Works only with primitive types int, float, string
* Implements set theortic operations union, intersection, complement
* Modifies set by adding, removing elements
* Implements \IteratorAggregate for use in loops

### Implementation details

Based on array functions:
* array_diff,
* array_merge,
* array_intersection,
* array_unique,
* array_values,
* sort.

### Drawbacks

* **Do not work with objects.**
* Power set and Cartesian product returning array of Set
2016-09-10 13:24:43 +02:00
Arkadiusz Kondas
6739660f8d Merge pull request #19 from pflorek/master
Association rule learning - Apriori algorithm
2016-09-06 23:15:04 +02:00
Patrick Florek
90038befa9 Apply comments / coding styles
* Remove user-specific gitignore
* Add return type hints
* Avoid global namespace in docs
* Rename rules -> getRules
* Split up rule generation

Todo:
* Move set theory out to math
* Extract rule generation
2016-09-02 00:26:01 +02:00
Patrick Florek
c8bd8db601 # Association rule learning - Apriori algorithm
* Generating frequent k-length item sets
* Generating rules based on frequent item sets
* Algorithm has exponential complexity, be aware of it
* Apriori algorithm is split into apriori and candidates method
* Second step rule generation is implemented by rules method
* Internal methods are invoked for fine grain unit tests
* Wikipedia's train samples and an alternative are provided for test cases
* Small documentation for public interface is also shipped
2016-08-23 15:44:53 +02:00
Arkadiusz Kondas
6421a2ba41 Develop to master (#18)
* Fix Backpropagation test with explicit random generator seed

* remove custom seed - not working :(

* Updated links in readme
2016-08-21 14:03:20 +02:00
Arkadiusz Kondas
41ac2e33ae Merge pull request #16 from php-ai/develop
Simple Neural Network with MultilayerPerceptron and Backpropagation
2016-08-14 19:17:12 +02:00
Arkadiusz Kondas
3599367ce8 Add docs for neural network 2016-08-14 19:14:56 +02:00
Arkadiusz Kondas
b1978cf5ca update changelog 2016-08-14 18:35:17 +02:00
Arkadiusz Kondas
638119fc98 code style fixes 2016-08-14 18:27:08 +02:00
Arkadiusz Kondas
f0bd5ae424 Create MLP Regressor draft 2016-08-12 16:29:50 +02:00
Arkadiusz Kondas
2412f15923 Add activationFunction parameter for Perceptron and Layer 2016-08-11 13:21:22 +02:00
Arkadiusz Kondas
c506a84164 refactor Backpropagation methods and simplify things 2016-08-10 23:03:02 +02:00
Arkadiusz Kondas
66d029e94f implement and test Backpropagation training 2016-08-10 22:43:47 +02:00
Arkadiusz Kondas
e5d39ee18a implements and test multilayer perceptron methods 2016-08-09 13:27:48 +02:00
Arkadiusz Kondas
72afeb7040 implements and test multilayer perceptron methods 2016-08-09 13:27:43 +02:00
Arkadiusz Kondas
64859f263f test abstraction from LayeredNetwork 2016-08-07 23:41:08 +02:00
Arkadiusz Kondas
ddb3cc367b test abstraction from LayeredNetwork 2016-08-07 23:41:02 +02:00
Arkadiusz Kondas
12ee62bbca create Network and Training contracts 2016-08-05 16:12:39 +02:00
Arkadiusz Kondas
95b29d40b1 add Layer, Input and Bias for neutal network 2016-08-05 10:20:31 +02:00
Arkadiusz Kondas
7062ee29e1 add Neuron and Synapse classes 2016-08-02 20:30:20 +02:00
Arkadiusz Kondas
f186aa9c0b extract functions from loops and remove unused code 2016-08-02 13:23:58 +02:00
Arkadiusz Kondas
637fd613b8 implement activation function for neural network 2016-08-02 13:07:47 +02:00
Arkadiusz Kondas
2f5b090188 create contributing guide 2016-07-26 21:57:15 +02:00
Pablo Joán Iglesias
bbbf5cfc9d For each body should be wrapped in an if statement (#14)
unit test to go with commit
2016-07-26 08:14:57 +02:00
Pablo Joán Iglesias
38deaaeb2e testScalarProduct check for non numeric values (#13)
* testScalarProduct check for non numeric values

test for non numeric values.

* updating pr #13

using global namespace fro stdClass
2016-07-26 08:13:52 +02:00
Arkadiusz Kondas
0869043488 Merge pull request #12 from php-ai/develop
New features: ClassificationReport and FileDataset
2016-07-24 14:04:09 +02:00
Arkadiusz Kondas
403824d23b test exception on kmeans 2016-07-24 14:01:17 +02:00
Arkadiusz Kondas
448eaafd78 remove unused exception 2016-07-24 13:52:52 +02:00
Arkadiusz Kondas
a298bdc8de create script for code coverage generation 2016-07-24 13:45:54 +02:00
Arkadiusz Kondas
2a76cbb402 add .coverage to git ignore 2016-07-24 13:42:50 +02:00