Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
MCordingley
Regression
Algorithm
GradientDescent
Gradient
Logistic
PHP Class MCordingley\Regression\Algorithm\GradientDescent\Gradient\Logistic
Inheritance:
implements
MCordingley\Regression\Algorithm\GradientDescent\Gradient\Gradient
Exibir arquivo
Open project: mcordingley/regression
Class Usage Examples
Public Methods
Method
Description
cost
(
array
$coefficients
,
array
$features
,
float
$outcome
) :
float
gradient
(
array
$coefficients
,
array
$features
,
float
$outcome
) :
array
Private Methods
Method
Description
predicted
(
array
$coefficients
,
array
$features
) :
float
Method Details
cost()
public
method
public
cost
(
array
$coefficients
,
array
$features
,
float
$outcome
) :
float
$coefficients
array
$features
array
$outcome
float
return
float
gradient()
public
method
public
gradient
(
array
$coefficients
,
array
$features
,
float
$outcome
) :
array
$coefficients
array
$features
array
$outcome
float
return
array