From ed775fb232065307909ede1cb99b7ef393068b86 Mon Sep 17 00:00:00 2001 From: Yuji Uchiyama Date: Tue, 6 Feb 2018 02:50:45 +0900 Subject: [PATCH] Fix documentation of apriori (#221) * Fix the return value of the single sample prediction * Fix typo --- docs/machine-learning/association/apriori.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/machine-learning/association/apriori.md b/docs/machine-learning/association/apriori.md index e6685af..6f597be 100644 --- a/docs/machine-learning/association/apriori.md +++ b/docs/machine-learning/association/apriori.md @@ -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