A
A
Alexey Likhachev2017-03-28 11:31:38
PHP
Alexey Likhachev, 2017-03-28 11:31:38

What are ready implementations of clustering in php?

At the input we have an unlimited number of arrays, at the output we would like to get intersection groups by the number of elements and by the number of arrays.
Input data:

$array1 = [1,2,3];
$array2 = [4,2,5];
$array3 = [4,2,3];

The output would be something like: Element with value 2 occurs in all arrays, element with value 3 in $array1 and $array3, element with value 4 in $array2 and $array3, with value 5 in $array2

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Grigory Esin, 2017-03-28
@Playbot

There are quite a lot of things on machine learning in PHP: https://github.com/php-ai/php-ml
I do not recommend using it in production, but you can see how it is implemented.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question