From issues-return-184560-archive-asf-public=cust-asf.ponee.io@spark.apache.org Fri Feb 9 16:00:05 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 15D86180654 for ; Fri, 9 Feb 2018 16:00:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0504B160C5E; Fri, 9 Feb 2018 15:00:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4B889160C2E for ; Fri, 9 Feb 2018 16:00:04 +0100 (CET) Received: (qmail 56373 invoked by uid 500); 9 Feb 2018 15:00:03 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 56364 invoked by uid 99); 9 Feb 2018 15:00:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Feb 2018 15:00:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 1637CC00E0 for ; Fri, 9 Feb 2018 15:00:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id I1biIOomO0-6 for ; Fri, 9 Feb 2018 15:00:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id F3F945F341 for ; Fri, 9 Feb 2018 15:00:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 12A03E0161 for ; Fri, 9 Feb 2018 15:00:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 5D587240F6 for ; Fri, 9 Feb 2018 15:00:00 +0000 (UTC) Date: Fri, 9 Feb 2018 15:00:00 +0000 (UTC) From: "Sean Owen (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (SPARK-23269) FP-growth: Provide last transaction for each detected frequent pattern MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SPARK-23269?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Sean Owen resolved SPARK-23269. ------------------------------- Resolution: Won't Fix > FP-growth: Provide last transaction for each detected frequent pattern > ---------------------------------------------------------------------- > > Key: SPARK-23269 > URL: https://issues.apache.org/jira/browse/SPARK-23269 > Project: Spark > Issue Type: Improvement > Components: ML > Affects Versions: 2.2.1 > Reporter: Arseniy Tashoyan > Priority: Minor > Labels: MLlib, fp-growth > Original Estimate: 120h > Remaining Estimate: 120h > > FP-growth implementation gives patterns and their frequences: > _model.freqItemsets_: > ||items||freq|| > |[5]|3| > |[5, 1]|3| > It would be great to know when each pattern occurred last time - what is = the last transaction having this pattern? > To do so, it will be necessary to tell FPGrowth what is the timestamp col= umn in the transactions data frame: > {code:java} > val fpgrowth =3D new FPGrowth() > =C2=A0 .setItemsCol("items") > =C2=A0 .setTimestampCol("timestamp") > {code} > So the data frame with patterns could look like: > ||items||freq||lastOccurrence|| > |[5]|3|2018-01-01 12:15:00| > |[5, 1]|3|2018-01-01 12:15:00| > Without this functionality, it is necessary to traverse the transactions = data frame with the set of detected patterns and determine the last transac= tion for each pattern. Why traverse transactions once again if it has been = already done in FP-growth execution? > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org