Skip to content

Commit

Permalink
New methods: setBinPath, setVarPath in SupportVectorMachine (#73)
Browse files Browse the repository at this point in the history
* new methods: setBinPath, setVarPath

* fix whitespaces and breaklines
  • Loading branch information
Humberto Castelo Branco authored and akondas committed May 13, 2017
1 parent 7eee674 commit 43f15d2
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions src/Phpml/SupportVectorMachine/SupportVectorMachine.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
class SupportVectorMachine
{
use Trainable;
/**

/**
* @var int
*/
private $type;
Expand Down Expand Up @@ -128,6 +128,26 @@ public function __construct(
$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
Expand Down

0 comments on commit 43f15d2

Please sign in to comment.