Sorry. I mean the parameter step. 2015-05-28 12:21 GMT+08:00 Maheshakya Wijewardena <mahesha...@wso2.com>:
> What is the parameter for the learning rate alpha? LinearRegressionWithSGD > has only following parameters. > > > @param data: The training data. >> @param iterations: The number of iterations (default: 100). >> @param step: The step parameter used in SGD >> (default: 1.0). >> @param miniBatchFraction: Fraction of data to be used for each SGD >> iteration. >> @param initialWeights: The initial weights (default: None). >> @param regParam: The regularizer parameter (default: 1.0). >> @param regType: The type of regularizer used for training >> our model. >> Allowed values: "l1" for using L1Updater, >> "l2" for using >> SquaredL2Updater, >> "none" for no regularizer. >> (default: "none") >> @param intercept: Boolean parameter which indicates the use >> or not of the augmented representation for >> training data (i.e. whether bias features >> are activated or not). >> >> > On Thu, May 28, 2015 at 9:42 AM, 吴明瑜 <timbero...@gmail.com> wrote: > >> The problem may occur when your algorithm cannot converge. Maybe you can >> check if the learning rate alpha is too large. Try reducing it. >> >> 2015-05-28 12:08 GMT+08:00 Maheshakya Wijewardena <mahesha...@wso2.com>: >> >>> >>> 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 after training, it contains `nan` values. >>> >>> [nan,nan,nan,nan,nan,nan,nan,nan] >>> >>> But for some data sets, this problem does not occur. 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 >>> >>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscr...@spark.apache.org >>> For additional commands, e-mail: user-h...@spark.apache.org >>> >> >> >> >> -- >> Mingyu Wu >> >> Institute of Parallel and Distributed Systems >> >> School of Software Engineering >> >> Shanghai Jiao Tong University >> >> > > > -- > Pruthuvi Maheshakya Wijewardena > Software Engineer > WSO2 Lanka (Pvt) Ltd > Email: mahesha...@wso2.com > Mobile: +94711228855 > > > -- Mingyu Wu Institute of Parallel and Distributed Systems School of Software Engineering Shanghai Jiao Tong University