Skip to content

Commit

Permalink
Fix documentation of apriori (#221)
Browse files Browse the repository at this point in the history
* Fix the return value of the single sample prediction

* Fix typo
  • Loading branch information
y-uti authored and akondas committed Feb 5, 2018
1 parent 84a49db commit ed775fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/machine-learning/association/apriori.md
Original file line number Diff line number Diff line change
Expand Up @@ -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']]]
Expand All @@ -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
Expand Down

0 comments on commit ed775fb

Please sign in to comment.