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 7B24D200BB1 for ; Thu, 3 Nov 2016 21:42:08 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 79D63160AFF; Thu, 3 Nov 2016 20:42:08 +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 BC291160AE5 for ; Thu, 3 Nov 2016 21:42:07 +0100 (CET) Received: (qmail 1051 invoked by uid 500); 3 Nov 2016 20:42:04 -0000 Mailing-List: contact user-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@spark.apache.org Received: (qmail 811 invoked by uid 99); 3 Nov 2016 20:42:03 -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; Thu, 03 Nov 2016 20:42:03 +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 20A9F1A92D2 for ; Thu, 3 Nov 2016 20:42:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.101 X-Spam-Level: X-Spam-Status: No, score=-0.101 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 p1UvAxM9SVZi for ; Thu, 3 Nov 2016 20:42:01 +0000 (UTC) Received: from mail-pf0-f173.google.com (mail-pf0-f173.google.com [209.85.192.173]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 895925FBDF for ; Thu, 3 Nov 2016 20:42:00 +0000 (UTC) Received: by mail-pf0-f173.google.com with SMTP id 189so37412335pfz.3 for ; Thu, 03 Nov 2016 13:42:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=avJqM94HiIkRYFHpK7fAUbUMNFYAvklCFn4QVWfcWOY=; b=eSbzscu7O8S3mmG60oWNuptVSzCkguwqEi1QmNK4X9tsgiU2Qx2gyFGj5DZWU31MYj oe/79yb17I7AURWpknnea+D5QSdjCwOISGhsYSpn5d+AncMs5altYuke9R65tXO+r9FK ZX1yexJMoCwYqTQipkjDpq9YiLh1Ly3DjRmjsC8WRxElEskIHPeZzM7op24KNfo70cXT yy0lnATp7hNTmZcdsE0TbAlLXvGY26cfwogR4DsRWg6b417C2Fx4xfJErdCKUtUwx1d5 SA0kqL7GljzxfYCZdxhXSlgGHG7SjtguF8yZLJGy7MqqoiaJbc8k7vy2mDVYBJhfsCnU IrLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=avJqM94HiIkRYFHpK7fAUbUMNFYAvklCFn4QVWfcWOY=; b=OgSWZlIVuQRn7T7xfvIFbvqBKZXKfyf2NHAnSDhpMeXro6k03Tj5LFUofjtyNe6ajJ F2UGXuLwNSTRJpHwxcsNmPrbBSZcZ4gXtNyjffDVKU7tIw7s/ccUUQtTAmnmE5hERfbX IoBPAY3TidfNQXhb/hIJFGB2z4LoE0007jANOjLVxHN6Rr3GZkprMmCc4HocaDvCxPhm SWXi11u23H3hVlYOQiMLLCm/dbx6CWUdRACcx+lg6ouGGN1HV3wyNHjdAyaKj7ft7LdK /jblIgt8Yj0gO6QDHxvzJkyw4TSL7f2al/Z3UJWkoy9zBBE69Unq5jNBP1Q0qAnGVghW sIsg== X-Gm-Message-State: ABUngvelqeS97Lmoz8m02NukpJwzL/xRl3mQiYxhhbWz+ctP1SeXtXrwwt1oErk//C/mKg== X-Received: by 10.99.132.194 with SMTP id k185mr16581413pgd.171.1478205719159; Thu, 03 Nov 2016 13:41:59 -0700 (PDT) Received: from [192.168.99.105] (c-73-223-204-115.hsd1.ca.comcast.net. [73.223.204.115]) by smtp.gmail.com with ESMTPSA id t5sm14718218pfb.58.2016.11.03.13.41.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Nov 2016 13:41:58 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.0 \(3226\)) Subject: Re: LinearRegressionWithSGD and Rank Features By Importance From: Mohit Jaggi In-Reply-To: Date: Thu, 3 Nov 2016 13:41:56 -0700 Cc: "user@spark.apache.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: To: "Carlo.Allocca" X-Mailer: Apple Mail (2.3226) archived-at: Thu, 03 Nov 2016 20:42:08 -0000 For linear regression, it should be fairly easy. Just sort the = co-efficients :) Mohit Jaggi Founder, Data Orchard LLC www.dataorchardllc.com > On Nov 3, 2016, at 3:35 AM, Carlo.Allocca = wrote: >=20 > Hi All, >=20 > I am using SPARK and in particular the MLib library. >=20 > import org.apache.spark.mllib.regression.LabeledPoint; > import org.apache.spark.mllib.regression.LinearRegressionModel; > import org.apache.spark.mllib.regression.LinearRegressionWithSGD; >=20 > For my problem I am using the LinearRegressionWithSGD and I would like = to perform a =E2=80=9CRank Features By Importance=E2=80=9D. >=20 > I checked the documentation and it seems that does not provide such = methods. >=20 > Am I missing anything? Please, could you provide any help on this? > Should I change the approach? >=20 > Many Thanks in advance, >=20 > Best Regards, > Carlo >=20 >=20 > -- The Open University is incorporated by Royal Charter (RC 000391), = an exempt charity in England & Wales and a charity registered in = Scotland (SC 038302). The Open University is authorised and regulated by = the Financial Conduct Authority. >=20 > --------------------------------------------------------------------- > To unsubscribe e-mail: user-unsubscribe@spark.apache.org >=20 --------------------------------------------------------------------- To unsubscribe e-mail: user-unsubscribe@spark.apache.org