php-ml/tests/Phpml/Classification
Jonathan Baldie e318921076 Fix string representation of integer labels issue in NaiveBayes (#206)
* Update NaiveBayes.php

This fixes an issue using string labels that are string representations of integers, e.g. "1998" getting cast to (int)1998.

* Update NaiveBayes.php

fixes superfluous whitespace error

* added tests for naive bayes with numeric labels

* added array_unique

* nested array_flips for speed

* nested the array flips inside the array map

* to appear style CI test
2018-01-31 21:44:44 +01:00
..
DecisionTree Add PHPStan and level to max (#168) 2018-01-06 13:09:33 +01:00
Ensemble Add PHPStan and level to max (#168) 2018-01-06 13:09:33 +01:00
Linear Update dev dependencies (#187) 2018-01-06 21:25:47 +01:00
DecisionTreeTest.php Add PHPStan and level to max (#168) 2018-01-06 13:09:33 +01:00
KNearestNeighborsTest.php Add PHPStan and level to max (#168) 2018-01-06 13:09:33 +01:00
MLPClassifierTest.php Fix activation functions support (#163) 2018-01-09 11:09:59 +01:00
NaiveBayesTest.php Fix string representation of integer labels issue in NaiveBayes (#206) 2018-01-31 21:44:44 +01:00
SVCTest.php Add PHPStan and level to max (#168) 2018-01-06 13:09:33 +01:00