Commit ab22cc5b authored by Yuji Uchiyama's avatar Yuji Uchiyama Committed by Arkadiusz Kondas
Browse files

Change the default kernel type in SVC to Kernel::RBF (#267)

* Change the default kernel type in SVC to Kernel::RBF

* Update CHANGELOG.md
parent 46fa2c2c
......@@ -4,6 +4,7 @@ CHANGELOG
This changelog references the relevant changes done in PHP-ML library.
* Unreleased
* feature [Dataset] changed the default kernel type in SVC to Kernel::RBF (#267)
* feature [Clustering] added KMeans associative clustering (#262)
* feature [Dataset] added removeColumns function to ArrayDataset (#249)
* feature [Dataset] added a SvmDataset class for SVM-Light (or LibSVM) format files (#237)
......
......@@ -4,7 +4,7 @@ Classifier implementing Support Vector Machine based on libsvm.
### Constructor Parameters
* $kernel (int) - kernel type to be used in the algorithm (default Kernel::LINEAR)
* $kernel (int) - kernel type to be used in the algorithm (default Kernel::RBF)
* $cost (float) - parameter C of C-SVC (default 1.0)
* $degree (int) - degree of the Kernel::POLYNOMIAL function (default 3)
* $gamma (float) - kernel coefficient for ‘Kernel::RBF’, ‘Kernel::POLYNOMIAL’ and ‘Kernel::SIGMOID’. If gamma is ‘null’ then 1/features will be used instead.
......
......@@ -11,7 +11,7 @@ use Phpml\SupportVectorMachine\Type;
class SVC extends SupportVectorMachine implements Classifier
{
public function __construct(
int $kernel = Kernel::LINEAR,
int $kernel = Kernel::RBF,
float $cost = 1.0,
int $degree = 3,
?float $gamma = null,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment