From 43f15d2f7e077ec2f5b4cca5993b318aea0f00f6 Mon Sep 17 00:00:00 2001 From: Humberto Castelo Branco Date: Sat, 13 May 2017 07:58:06 -0300 Subject: [PATCH] New methods: setBinPath, setVarPath in SupportVectorMachine (#73) * new methods: setBinPath, setVarPath * fix whitespaces and breaklines --- .../SupportVectorMachine.php | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/src/Phpml/SupportVectorMachine/SupportVectorMachine.php b/src/Phpml/SupportVectorMachine/SupportVectorMachine.php index f3828b4..9f6da70 100644 --- a/src/Phpml/SupportVectorMachine/SupportVectorMachine.php +++ b/src/Phpml/SupportVectorMachine/SupportVectorMachine.php @@ -9,8 +9,8 @@ use Phpml\Helper\Trainable; class SupportVectorMachine { use Trainable; - - /** + + /** * @var int */ private $type; @@ -128,6 +128,26 @@ class SupportVectorMachine $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 $targets