php-ml/src/Phpml/Classification/WeightedClassifier.php

22 lines
358 B
PHP
Raw Normal View History

2017-03-01 09:16:15 +00:00
<?php
2017-03-01 09:16:15 +00:00
declare(strict_types=1);
2017-03-01 09:16:15 +00:00
namespace Phpml\Classification;
abstract class WeightedClassifier implements Classifier
{
2017-03-05 15:25:01 +00:00
/**
* @var array
*/
protected $weights;
/**
* Sets the array including a weight for each sample
*/
public function setSampleWeights(array $weights)
{
$this->weights = $weights;
}
}