mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-24 22:07:33 +00:00
New methods: setBinPath, setVarPath in SupportVectorMachine (#73)
* new methods: setBinPath, setVarPath * fix whitespaces and breaklines
This commit is contained in:
parent
7eee6748d2
commit
43f15d2f7e
@ -9,8 +9,8 @@ use Phpml\Helper\Trainable;
|
|||||||
class SupportVectorMachine
|
class SupportVectorMachine
|
||||||
{
|
{
|
||||||
use Trainable;
|
use Trainable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
private $type;
|
private $type;
|
||||||
@ -128,6 +128,26 @@ class SupportVectorMachine
|
|||||||
$this->varPath = $rootPath.'var'.DIRECTORY_SEPARATOR;
|
$this->varPath = $rootPath.'var'.DIRECTORY_SEPARATOR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $binPath
|
||||||
|
*/
|
||||||
|
public function setBinPath(string $binPath)
|
||||||
|
{
|
||||||
|
$this->binPath = $binPath;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $varPath
|
||||||
|
*/
|
||||||
|
public function setVarPath(string $varPath)
|
||||||
|
{
|
||||||
|
$this->varPath = $varPath;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array $samples
|
* @param array $samples
|
||||||
* @param array $targets
|
* @param array $targets
|
||||||
|
Loading…
Reference in New Issue
Block a user