Fix documentation of apriori (#221)

* Fix the return value of the single sample prediction

* Fix typo
This commit is contained in:
Yuji Uchiyama 2018-02-06 02:50:45 +09:00 committed by Arkadiusz Kondas
parent 84a49dbffe
commit ed775fb232

View File

@ -35,7 +35,7 @@ To predict sample label use `predict` method. You can provide one sample or arra
```
$associator->predict(['alpha','theta']);
// return [[['beta']]]
// return [['beta']]
$associator->predict([['alpha','epsilon'],['beta','theta']]);
// return [[['beta']], [['alpha']]]
@ -47,7 +47,7 @@ Get generated association rules simply use `rules` method.
```
$associator->getRules();
// return [['antecedent' => ['alpha', 'theta'], 'consequent' => ['beta], 'support' => 1.0, 'confidence' => 1.0], ... ]
// return [['antecedent' => ['alpha', 'theta'], 'consequent' => ['beta'], 'support' => 1.0, 'confidence' => 1.0], ... ]
```
### Frequent item sets