Test Failed
Push — master ( e8c600...c028a7 )
by Arkadiusz
02:50
created

WeightedClassifier::setSampleWeights()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php declare(strict_types=1);
2
3
namespace Phpml\Classification;
4
5
use Phpml\Classification\Classifier;
6
7
abstract class WeightedClassifier implements Classifier
8
{
9
    protected $weights = null;
10
11
    /**
12
     * Sets the array including a weight for each sample
13
     *
14
     * @param array $weights
15
     */
16
    public function setSampleWeights(array $weights)
17
    {
18
        $this->weights = $weights;
19
    }
20
}
21