Skip to content

[source]

Preset#

Generates centroids from a list of presets.

Parameters#

# Name Default Type Description
1 centroids array A list of predefined cluster centroids to sample from.

Example#

use Rubix\ML\Clusterers\Seeders\Preset;

$seeder = new Preset([
    ['foo', 14, 0.72],
    ['bar', 16, 0.92],
]);

Last update: 2021-07-03