Commit Graph

7086 Commits

Author SHA1 Message Date
Alex Herbert a97523700a Compare candidate to all list points 2022-12-03 19:09:37 +00:00
aherbert ab9b0b0c2d Use a LinkedHashMap to respect the order of the input data
Note: The int/real enumerated distributions do not specify that the
input must be sorted. This change supports the legacy behaviour enforced
by the unit test which is assuming input values are processed in
encounter order (which happens to be sorted).

Given int and double have a natural ordering it may be better to update
the distribution to sort input values. However this would contradict the
enumerated distribution which respects the input order of the list used
in the constructor.
2022-12-02 15:08:03 +00:00
aherbert abb32b5a62 Use method reference for the sampler 2022-12-02 13:56:34 +00:00
aherbert 9fcd3885dc Use Map.merge 2022-12-02 13:54:50 +00:00
aherbert 7ed772e474 Use survival probability 2022-12-02 13:41:47 +00:00
aherbert 6d767220ed Use method reference to create a sampler 2022-12-02 13:39:36 +00:00
aherbert f7ef9b625b Fix git build number in manifest 2022-12-02 11:52:57 +00:00
aherbert 91b0bb3d30 Update to use commons.module.name (consitent with CP) 2022-12-02 11:50:28 +00:00
aherbert 3e72f1ea31 MATH-1651: Ensure neuron distances are returned in a consistent order
Use of the iterator order should be avoided as the underlying collection
uses an unspecified iteration order.
2022-11-03 16:42:53 +00:00
aherbert 654697c048 Remove "CombinatoricsUtils" class
Functionality is in "Commons Numbers" combinatorics package.
2022-11-03 12:05:40 +00:00
Gilles Sadowski 50977290cd MATH-1651: Modified unit test.
The old test was flaky because it assumed a fixed iteration order.
[Thanks to Anant Dahiya for pointing it out.]
The new test indirectly checks how neuron's identifiers are assigned.

Closes #213.
2022-11-03 12:36:15 +01:00
aherbert 24e4acc7de Update commons-numbers 1.1-SNAPSHOT to 1.1 2022-11-02 11:18:43 +00:00
aherbert 1b7cff82ab Use latest MathJax URL 2022-11-01 12:05:04 +00:00
aherbert fc239a64be Fix overflow bug in stirlingS2 when n > 64, k = 2 2022-10-31 11:08:52 +00:00
aherbert d617a730aa Convert test to JUnit 5 2022-10-31 11:02:37 +00:00
aherbert c60db86167 Remove unused cached binomial coefficients from test 2022-10-31 10:35:05 +00:00
Milind Mantri 95bbb36f82
Fix rolling mean example code in Statistics docs (#227) 2022-10-27 08:02:26 +01:00
Arturo Bernal 199648a8a1
MATH-1569: Manual array copy. (#219) 2022-10-25 21:34:17 +01:00
Arturo Bernal 3f043ba7e1
Improved with better formatting. (#225) 2022-10-22 22:58:20 +01:00
Alex Herbert 3ddfbd6cf7 Remove extra addition character 2022-10-22 07:57:36 +01:00
John Patrick a1ac185ba9
JUnit5 assertThrows NeuronSquareMesh2DTest (#216) 2022-10-21 09:14:18 +01:00
John Patrick 15b2e50328
JUnit5 assertThrows MapRankingTest (#215) 2022-10-21 09:13:37 +01:00
John Patrick 5e497dd704
JUnit5 assertThrows ExponentialDecayFunctionTest (#222) 2022-10-20 22:19:22 +01:00
John Patrick 7dde96fd0e
JUnit5 assertThrows QuasiSigmoidDecayFunctionTest (#221) 2022-10-20 22:18:40 +01:00
John Patrick 235365d464
JUnit5 assertThrows LearningFactorFunctionFactoryTest (#220) 2022-10-20 22:17:31 +01:00
John Patrick 9b1d7c5f8a
JUnit5 assertThrows NeighbourhoodSizeFunctionFactoryTest (#218) 2022-10-20 22:16:12 +01:00
John Patrick e4d77683f5
JUnit5 assertThrows TransformUtilsTest (#214) 2022-10-20 21:57:39 +01:00
Gary Gregory 7a98b04a29 Add a GitHub security page. 2022-10-19 06:45:51 -04:00
Alex Herbert ec7eb8b32d User guide typo corrections 2022-10-13 21:32:00 +01:00
aherbert aedec76b0b sonarfix: remove useless parentheses 2022-10-13 17:49:10 +01:00
aherbert 17ca771e10 sonarfix: remove unnecessary boolean 2022-10-13 17:49:10 +01:00
aherbert b9209b212a sonarfix: Avoid c-style array declarations 2022-10-13 17:49:10 +01:00
aherbert 5f3af10635 sonarfix: Do not use changes as a loop counter 2022-10-13 17:49:10 +01:00
aherbert f916fba364 Rename local variable to avoid hiding class field 2022-10-13 17:49:10 +01:00
aherbert 1df6c402c1 Remove unecessary cast to double 2022-10-13 17:49:10 +01:00
aherbert 6ea87d0adc sonarfix: Remove transient keyword from non-Serializable class 2022-10-13 17:49:10 +01:00
aherbert 6969438fda Remove use of modulus to detect odd/even
Use the lowest bit to detect the sign.
2022-10-13 16:49:11 +01:00
aherbert 9f01e23622 Remove unused rerunFailingTestsCount from non-random exception tests 2022-10-13 16:36:11 +01:00
aherbert b0d0973fd9 Move legacy flaky tests into a separate execution
This can increase the rerunFailingTestsCount to improve robustness of
the test suite.
2022-10-13 16:36:11 +01:00
aherbert 285838bb6c Increase test point tolerance
This test is flaky and requires more than 3 repeats to pass at the
previous tolerance level.
2022-10-13 16:36:11 +01:00
aherbert 9545777694 Update test to move towards the previously found optimum 2022-10-13 16:36:11 +01:00
aherbert 4e2457cb36 Better initial guess for the circle centre 2022-10-13 16:36:11 +01:00
aherbert a80eefc21a Update the CircleProblem to use the latest commons RNG objects 2022-10-13 16:36:11 +01:00
aherbert 45e48f9d97 Update sampling test
Use faster and more robust RNG. Add better error tolerance.
2022-10-13 14:48:32 +01:00
aherbert fed7dd881b Make constructor private and class final
Suppress warnings on unchecked cast and documented expected usage of the
object array.
2022-10-13 14:19:15 +01:00
aherbert 83d9e3ab39 Remove use of Double constructor 2022-10-13 14:05:39 +01:00
aherbert b69aec0dff Remove use of deprecated class 2022-10-13 13:59:27 +01:00
aherbert b72c0945a6 Use mvn for README contributing build goal 2022-10-13 13:38:50 +01:00
aherbert 2c76d18910 Disable Travis (superseded by GH actions)
Update build status badge
2022-10-13 13:37:18 +01:00
aherbert 02ca77c649 Update coverage badge 2022-10-13 13:26:38 +01:00