php-ml/src/Phpml/Regression/LeastSquares.php
2016-04-25 22:55:34 +02:00

38 lines
575 B
PHP

<?php
declare (strict_types = 1);
namespace Phpml\Regression;
class LeastSquares implements Regression
{
/**
* @var array
*/
private $features;
/**
* @var array
*/
private $targets;
/**
* @param array $features
* @param array $targets
*/
public function train(array $features, array $targets)
{
$this->features = $features;
$this->targets = $targets;
}
/**
* @param array $features
*
* @return mixed
*/
public function predict(array $features)
{
}
}