Completed
Push — develop ( 7062ee...12ee62 )
by Arkadiusz
02:50
created

Backpropagation   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A train() 0 4 1
1
<?php
2
3
declare (strict_types = 1);
4
5
namespace Phpml\NeuralNetwork\Training;
6
7
use Phpml\NeuralNetwork\Training;
8
9
class Backpropagation implements Training
10
{
11
12
    /**
13
     * @param array $samples
14
     * @param array $targets
15
     * @param float $desiredError
16
     * @param int $maxIterations
17
     */
18
    public function train(array $samples, array $targets, float $desiredError = 0.001, int $maxIterations = 10000)
19
    {
20
21
    }
22
23
}
24