Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
44 | public function __construct(int $type, int $kernel, float $cost) |
||
45 | { |
||
46 | $this->type = $type; |
||
47 | $this->kernel = $kernel; |
||
48 | $this->cost = $cost; |
||
49 | |||
50 | $rootPath = realpath(implode(DIRECTORY_SEPARATOR, [dirname(__FILE__), '..', '..', '..'])).DIRECTORY_SEPARATOR; |
||
51 | |||
52 | $this->binPath = $rootPath.'bin'.DIRECTORY_SEPARATOR.'libsvm'.DIRECTORY_SEPARATOR; |
||
53 | $this->varPath = $rootPath.'var'.DIRECTORY_SEPARATOR; |
||
54 | } |
||
55 | |||
84 |