php-ml/src/Phpml/Regression/LeastSquares.php

38 lines
575 B
PHP
Raw Normal View History

2016-04-25 20:55:34 +00:00
<?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)
{
}
}