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 30EF5200D00 for ; Sun, 10 Sep 2017 20:49:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2F8131609BD; Sun, 10 Sep 2017 18:49:04 +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 750191609B9 for ; Sun, 10 Sep 2017 20:49:03 +0200 (CEST) Received: (qmail 25413 invoked by uid 500); 10 Sep 2017 18:49:02 -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 25404 invoked by uid 99); 10 Sep 2017 18:49:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Sep 2017 18:49:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 2101C1A2D62 for ; Sun, 10 Sep 2017 18:49:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id mvG8aPZ0LHBq for ; Sun, 10 Sep 2017 18:49:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 169CD5F6C8 for ; Sun, 10 Sep 2017 18:49: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 5771BE0295 for ; Sun, 10 Sep 2017 18:49:00 +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 093D824143 for ; Sun, 10 Sep 2017 18:49:00 +0000 (UTC) Date: Sun, 10 Sep 2017 18:49:00 +0000 (UTC) From: "Brian (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (SPARK-21968) Improved KernelDensity support MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 10 Sep 2017 18:49:04 -0000 Brian created SPARK-21968: ----------------------------- Summary: Improved KernelDensity support Key: SPARK-21968 URL: https://issues.apache.org/jira/browse/SPARK-21968 Project: Spark Issue Type: Improvement Components: MLlib Affects Versions: 2.2.0 Reporter: Brian Related to SPARK-7753. The KernelDensity API still does not provide a way to specify a kernel as described in the 7753 ticket, and requires the client to calculate their own optimal bandwidth. Specifying a kernel could be something like: def setKernel(kernel: Function2[Double,Double]): KernelDensity.this.type There could be something providing the user with a few options for kernels they could pass here so they don't need to implement each kernel themselves. Here are some example kernels: https://en.wikipedia.org/wiki/Kernel_(statistics)#Kernel_functions_in_common_use functions could also be provided to get more optimal bandwidth settings without the user needing to calculate it themselves, e.g. the "rule of thumb" and/or "solve the equation" bandwidth described here: https://en.wikipedia.org/wiki/Kernel_density_estimation#Bandwidth_selection -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org