[ https://issues.apache.org/jira/browse/SPARK-23740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16413199#comment-16413199 ]
Teng Peng commented on SPARK-23740: ----------------------------------- I suppose `beforehand` means before itemsets been generated, correct? If so, it seems we have two approaches here: # Add a new filter condition in `genFreqItems`, but this is in MLlib, not ML. # Filter input dataset before we call mllibFP. Then we will have implement a similar method like `genFreqItems` in MLlib. Does this look good to you? > Add FPGrowth Param for filtering out very common items > ------------------------------------------------------ > > Key: SPARK-23740 > URL: https://issues.apache.org/jira/browse/SPARK-23740 > Project: Spark > Issue Type: Improvement > Components: ML > Affects Versions: 2.3.0 > Reporter: Joseph K. Bradley > Priority: Major > > It would be handy to have a Param in FPGrowth for filtering out very common > items. This is from a use case where the dataset had items appearing in > 99.9%+ of the rows. These common items were useless, but they caused the > algorithm to generate many unnecessary itemsets. Filtering useless common > items beforehand can make the algorithm much faster. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org