You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2010/09/24 18:49:33 UTC

[jira] Resolved: (MAHOUT-378) min support parameter ignored in FPGrowth

     [ https://issues.apache.org/jira/browse/MAHOUT-378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen resolved MAHOUT-378.
------------------------------

    Resolution: Fixed

Committed a change as indicated. It passes tests and makes sense.

> min support parameter ignored in FPGrowth
> -----------------------------------------
>
>                 Key: MAHOUT-378
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-378
>             Project: Mahout
>          Issue Type: Bug
>          Components: Frequent Itemset/Association Rule Mining
>            Reporter: Robert Neumayer
>            Assignee: Robin Anil
>            Priority: Minor
>             Fix For: 0.4
>
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> The  minSupport parameter is never read in
> generateFList(Iterator<Pair<List<A>,Long>> transactions, int minSupport) 
> One solution is to drop the parameter, i.e.: 
> generateFList(Iterator<Pair<List<A>,Long>> transactions)
> I guess this would do the filtering:
> 		List<Pair<A, Long>> fList = new ArrayList<Pair<A, Long>>();
> 		for (Entry<A, MutableLong> e : attributeSupport.entrySet()) {
> 			if (e.getValue().intValue() >= minSupport) {
> 				fList.add(new Pair<A, Long>(e.getKey(), e.getValue()
> 						.longValue()));
> 			}
> 		}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.