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

WeightedClassifier   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setSampleWeights() 0 4 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