Fix default prameters values

This commit is contained in:
Arkadiusz Kondas 2016-12-06 08:55:52 +01:00
parent 9764890ccb
commit 6d11116994
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class TokenCountVectorizer implements Transformer
* @param StopWords $stopWords
* @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->stopWords = $stopWords;

View File

@ -17,7 +17,7 @@ class Minkowski implements Distance
/**
* @param float $lambda
*/
public function __construct(float $lambda = 3)
public function __construct(float $lambda = 3.0)
{
$this->lambda = $lambda;
}