MDL-58859 mlbackend_php: Upgrade php-ml to latest version

Part of MDL-57791 epic.
This commit is contained in:
David Monllao
2017-07-24 07:53:20 +02:00
parent 40fcb365c3
commit 589d7e8eb6
48 changed files with 1458 additions and 643 deletions
@@ -9,8 +9,8 @@ use Phpml\Helper\Trainable;
class SupportVectorMachine
{
use Trainable;
/**
/**
* @var int
*/
private $type;
@@ -128,6 +128,30 @@ class SupportVectorMachine
$this->varPath = $rootPath.'var'.DIRECTORY_SEPARATOR;
}
/**
* @param string $binPath
*
* @return $this
*/
public function setBinPath(string $binPath)
{
$this->binPath = $binPath;
return $this;
}
/**
* @param string $varPath
*
* @return $this
*/
public function setVarPath(string $varPath)
{
$this->varPath = $varPath;
return $this;
}
/**
* @param array $samples
* @param array $targets
@@ -210,8 +234,8 @@ class SupportVectorMachine
}
/**
* @param $trainingSetFileName
* @param $modelFileName
* @param string $trainingSetFileName
* @param string $modelFileName
*
* @return string
*/