mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-24 13:57:33 +00:00
Fix documentation of apriori (#221)
* Fix the return value of the single sample prediction * Fix typo
This commit is contained in:
parent
84a49dbffe
commit
ed775fb232
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user