Fwd: Model weights of linear regression becomes abnormal values

2015-05-27 Thread Maheshakya Wijewardena
What might be the reason for this? Is this an issue with the data I'm using or a bug? Best regards. -- Pruthuvi Maheshakya Wijewardena Software Engineer WSO2 Lanka (Pvt) Ltd Email: mahesha...@wso2.com Mobile: +94711228855 6,148,72,35,0,336,627,50,1 1,85,66,29,0,266,351,31,0 8,183,64,0

Re: Model weights of linear regression becomes abnormal values

2015-05-27 Thread Maheshakya Wijewardena
> > > On Wed, May 27, 2015 at 9:08 PM, Maheshakya Wijewardena > wrote: > > > > Hi, > > > > I'm trying to use Sparks' LinearRegressionWithSGD in PySpark with the > > attached dataset. The code is attached. When I check the model weights > > vector aft

Using a variable (a column name) in an IF statement in Spark SQL

2015-10-08 Thread Maheshakya Wijewardena
]; * It seems I can only use numerical values inside this IF statement, but when a column name is used, it fails. Is there any workaround to do this? Best regards. -- Pruthuvi Maheshakya Wijewardena Software Engineer WSO2 : http://wso2.com/ Email: mahesha...@wso2.com Mobile: +94711228855

Re: Using a variable (a column name) in an IF statement in Spark SQL

2015-10-08 Thread Maheshakya Wijewardena
Spark version: 1.4.1 The schema is "barcode STRING, items INT" On Thu, Oct 8, 2015 at 10:48 PM, Michael Armbrust wrote: > Hmm, that looks like it should work to me. What version of Spark? What > is the schema of goods? > > On Thu, Oct 8, 2015 at 6:13 AM, Maheshakya W