Learning-Library-for-PHP icon indicating copy to clipboard operation
Learning-Library-for-PHP copied to clipboard

progress

Open ReenExe opened this issue 9 years ago • 14 comments

ReenExe avatar Jan 21 '16 19:01 ReenExe

Giuseppe, something wrong StochasticGradientDescentTest fail - so comment line

ReenExe avatar Jan 21 '16 19:01 ReenExe

I will investigate before merging.

gburtini avatar Jan 21 '16 20:01 gburtini

I found part of code that was write a half? so i move it - how was, without logical change

ReenExe avatar Jan 21 '16 21:01 ReenExe

some like sann But project have tests, and we thy covers other

ReenExe avatar Jan 21 '16 21:01 ReenExe

There is lots of code in the library which is missing tests right now. SANN should work, but I do not believe has unit tests.

gburtini avatar Jan 21 '16 21:01 gburtini

I finish move to OOP Giuseppe we have different timezone (now 23+ in my clock), so continue in friday

ReenExe avatar Jan 21 '16 21:01 ReenExe

13:00 here. I'm on the west coast. Keep up the good work, I will review when you're all done.

Sleep well!

gburtini avatar Jan 21 '16 21:01 gburtini

I finish SANN but it very dirty So you can check tests https://travis-ci.org/ReenExeContributor/Learning-Library-for-PHP/branches

ReenExe avatar Feb 04 '16 18:02 ReenExe

Right, the tests for SANN are currently not PHPUnit. They were written by another author who submitted a PR.

I don't have time to rewrite them as PHPUnit right now. If you want to, please feel free, it should be relatively straightforward as the code at the bottom that computes $solutionScore should be as close to 0 as possible (check if it is within 0.1 of 0 for now?)

https://github.com/gburtini/Learning-Library-for-PHP/blob/master/tests/sann_test.php

$this->assertEqual(0, $solutionScore, '', 0.1);

Obviously having just the one unit test isn't great. I've personally never actually used this SANN code though.

gburtini avatar Feb 04 '16 18:02 gburtini

$solutionScore between 1 and 29+

2016-02-04 20:22 GMT+02:00 Giuseppe Burtini [email protected]:

Right, the tests for SANN are currently not PHPUnit. They were written by another author who submitted a PR.

I don't have time to rewrite them as PHPUnit right now. If you want to, please feel free, it should be relatively straightforward as the code at the bottom that computes $solutionScore should be as close to 0 as possible (check if it is within 0.1 of 0 for now?)

https://github.com/gburtini/Learning-Library-for-PHP/blob/master/tests/sann_test.php

$this->assertEqual(0, $solutionScore, '', 0.1);

Obviously having just the one unit test isn't great. I've personally never actually used this SANN code though.

— Reply to this email directly or view it on GitHub https://github.com/gburtini/Learning-Library-for-PHP/pull/5#issuecomment-179980047 .

ReenExe avatar Feb 04 '16 18:02 ReenExe

add commit with changes, answer i will read on Friday (home and so on)

2016-02-04 20:35 GMT+02:00 Ярослав Характерник [email protected]:

$solutionScore between 1 and 29+

2016-02-04 20:22 GMT+02:00 Giuseppe Burtini [email protected]:

Right, the tests for SANN are currently not PHPUnit. They were written by another author who submitted a PR.

I don't have time to rewrite them as PHPUnit right now. If you want to, please feel free, it should be relatively straightforward as the code at the bottom that computes $solutionScore should be as close to 0 as possible (check if it is within 0.1 of 0 for now?)

https://github.com/gburtini/Learning-Library-for-PHP/blob/master/tests/sann_test.php

$this->assertEqual(0, $solutionScore, '', 0.1);

Obviously having just the one unit test isn't great. I've personally never actually used this SANN code though.

— Reply to this email directly or view it on GitHub https://github.com/gburtini/Learning-Library-for-PHP/pull/5#issuecomment-179980047 .

ReenExe avatar Feb 04 '16 18:02 ReenExe

Sorry, I'm slow on this.

I recommend just commenting out that test for now (and leaving no active tests for SANN) and eventually I will either write a proper test for it or ask the initial author to review it. I don't have time to get deep in to it right now, I know this SANN build has been used in production so it is likely I am just misunderstanding something.

gburtini avatar Mar 01 '16 17:03 gburtini

Does this pull request require changes to the tests?

gburtini avatar Aug 02 '16 00:08 gburtini

Yes, but not all tests passed before my changes - so they commented, other passed

ReenExe avatar Aug 02 '16 08:08 ReenExe