Skip to content

Commit

Permalink
update composer
Browse files Browse the repository at this point in the history
  • Loading branch information
akondas committed May 4, 2016
1 parent c05ce8c commit 791a540
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 31 deletions.
Binary file added bin/libsvm/svm-predict
Binary file not shown.
Binary file added bin/libsvm/svm-scale
Binary file not shown.
Binary file added bin/libsvm/svm-train
Binary file not shown.
3 changes: 0 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
"Phpml": "src/"
}
},
"config": {
"bin-dir": "bin"
},
"require": {
"php": ">=7.0.0"
},
Expand Down
56 changes: 28 additions & 28 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions src/Phpml/Classification/SupportVectorMachine.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ class SupportVectorMachine implements Classifier
*/
private $upperBound;

/**
* @var string
*/
private $binPath;

/**
* @param Kernel $kernel
* @param float $C
Expand All @@ -50,12 +55,24 @@ public function __construct(Kernel $kernel = null, float $C = 1.0, float $tolera
$this->upperBound = $upperBound;
}

/**
* @param array $samples
* @param array $labels
*/
public function train(array $samples, array $labels)
{
$this->samples = $samples;
$this->labels = $labels;
}

/**
* @param array $sample
*
* @return mixed
*/
protected function predictSample(array $sample)
{

}

}

0 comments on commit 791a540

Please sign in to comment.