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 F4089200B9D for ; Thu, 13 Oct 2016 09:15:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F2FE9160AE3; Thu, 13 Oct 2016 07:15:22 +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 41228160AF8 for ; Thu, 13 Oct 2016 09:15:22 +0200 (CEST) Received: (qmail 51890 invoked by uid 500); 13 Oct 2016 07:15:21 -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 51859 invoked by uid 99); 13 Oct 2016 07:15:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Oct 2016 07:15:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D65222C4C77 for ; Thu, 13 Oct 2016 07:15:20 +0000 (UTC) Date: Thu, 13 Oct 2016 07:15:20 +0000 (UTC) From: "Yanbo Liang (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SPARK-12664) Expose raw prediction scores in MultilayerPerceptronClassificationModel MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 13 Oct 2016 07:15:23 -0000 [ https://issues.apache.org/jira/browse/SPARK-12664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15571105#comment-15571105 ] Yanbo Liang commented on SPARK-12664: ------------------------------------- [~GayathriMurali] Are you still working on this, if not, I can take over this and send a PR in a few days. [~eaudex] It just for simplifying the implementation and focus on the core algorithm. I also weigh this as an important feature. Thanks! > Expose raw prediction scores in MultilayerPerceptronClassificationModel > ----------------------------------------------------------------------- > > Key: SPARK-12664 > URL: https://issues.apache.org/jira/browse/SPARK-12664 > Project: Spark > Issue Type: Improvement > Components: ML > Reporter: Robert Dodier > > In org.apache.spark.ml.classification.MultilayerPerceptronClassificationModel, there isn't any way to get raw prediction scores; only an integer output (from 0 to #classes - 1) is available via the `predict` method. > `mplModel.predict` is called within the class to get the raw score, but `mlpModel` is private so that isn't available to outside callers. > The raw score is useful when the user wants to interpret the classifier output as a probability. -- 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