mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-22 04:55:10 +00:00
Fix default prameters values
This commit is contained in:
parent
9764890ccb
commit
6d11116994
@ -39,7 +39,7 @@ class TokenCountVectorizer implements Transformer
|
|||||||
* @param StopWords $stopWords
|
* @param StopWords $stopWords
|
||||||
* @param float $minDF
|
* @param float $minDF
|
||||||
*/
|
*/
|
||||||
public function __construct(Tokenizer $tokenizer, StopWords $stopWords = null, float $minDF = 0)
|
public function __construct(Tokenizer $tokenizer, StopWords $stopWords = null, float $minDF = 0.0)
|
||||||
{
|
{
|
||||||
$this->tokenizer = $tokenizer;
|
$this->tokenizer = $tokenizer;
|
||||||
$this->stopWords = $stopWords;
|
$this->stopWords = $stopWords;
|
||||||
|
@ -17,7 +17,7 @@ class Minkowski implements Distance
|
|||||||
/**
|
/**
|
||||||
* @param float $lambda
|
* @param float $lambda
|
||||||
*/
|
*/
|
||||||
public function __construct(float $lambda = 3)
|
public function __construct(float $lambda = 3.0)
|
||||||
{
|
{
|
||||||
$this->lambda = $lambda;
|
$this->lambda = $lambda;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user