MDL-58859 mlbackend_php: Upgrade php-ml to latest version
Part of MDL-57791 epic.
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user