Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 20FD5200A5B for ; Wed, 25 May 2016 12:52:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1FFDA160A18; Wed, 25 May 2016 10:52:15 +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 680DC160A17 for ; Wed, 25 May 2016 12:52:14 +0200 (CEST) Received: (qmail 36596 invoked by uid 500); 25 May 2016 10:52:13 -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 36584 invoked by uid 99); 25 May 2016 10:52:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2016 10:52:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CB8CB2C14DC for ; Wed, 25 May 2016 10:52:12 +0000 (UTC) Date: Wed, 25 May 2016 10:52:12 +0000 (UTC) From: "Nick Pentreath (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (SPARK-15504) Could MatrixFactorizationModel support recommend for some users only ? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 25 May 2016 10:52:15 -0000 [ https://issues.apache.org/jira/browse/SPARK-15504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nick Pentreath resolved SPARK-15504. ------------------------------------ Resolution: Duplicate Please see SPARK-10802 which already exists. For the old RDD-based API, it is unlikely that this will be supported directly. However SPARK-13857 will allow this as part of the DataFrame-based API. > Could MatrixFactorizationModel support recommend for some users only ? > ---------------------------------------------------------------------- > > Key: SPARK-15504 > URL: https://issues.apache.org/jira/browse/SPARK-15504 > Project: Spark > Issue Type: Wish > Components: MLlib > Affects Versions: 1.6.0, 1.6.1 > Environment: Spark 1.6.1 > Reporter: Hai > Priority: Trivial > Labels: features, performance > > I have used the ALS algorithm training a model, and I want to recommend products for some users not all in model, so the way I can use the API of MatrixFactorizationModel is the one -> recommendProducts(user: Int, num: Int): Array[Rating] which I should recommend the product one by one in spark driver, or the one -> recommendProductsForUsers(num: Int): RDD[(Int, Array[Rating])] which could run in spark cluster but it take some unused time calculate the user that I don't want to recommend products for. So I think if there could have an API such as -> recommendProductsForUsers(users: RDD[Int], num: Int): RDD[(Int, Array[Rating])], so it best match my case. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org