Demo

目录

README


二哥哥

echo php();

use Phpml\Classification\KNearestNeighbors; 哈哈哈哈或 $samples = [[1, 3], [1, 4], [2, 4], [3, 1], [4, 1], [4, 2]]; $labels = ['a', 'a', 'a', 'b', 'b', 'b'];

$classifier = new KNearestNeighbors(); $classifier->train($samples, $labels);

$classifier->predict([3, 2]); // return 'b'


phpinfo()
我晕

![1900.jpg](/markdown/upload/20160310110132-61.jpg)
[ThinkPhpPlugin 0.5.0 beta.rar](/markdown/upload/20160310110324-64.rar)
上传附件失败,附件格式只支持:jpg, jpeg, gif, png, zip, tar.gz, tgz, rar
![14968199305937a8da67200_k9jDRl5FbBkd.png](/markdown/upload/20170826011109-47.png)