Re: ML:One vs Rest with crossValidator for multinomial in logistic regression

2018-02-09 Thread Nicolas Paris
Brian This is absolutely this problem. Good to hear it will be fix in 2.3 release Le 09 févr. 2018 à 02:17, Bryan Cutler écrivait : > Nicolas, are you referring to printing the model params in that example with > "print(model1.extractParamMap())"?  There was a problem with pyspark models >

Re: ML:One vs Rest with crossValidator for multinomial in logistic regression

2018-02-08 Thread Bryan Cutler
Nicolas, are you referring to printing the model params in that example with "print(model1.extractParamMap())"? There was a problem with pyspark models not having params after being fit, which causes this example to show nothing for model paramMaps. This was fixed in

Re: ML:One vs Rest with crossValidator for multinomial in logistic regression

2018-01-31 Thread Nicolas Paris
Hey I am also interested in how to get those parameters. For example, the demo code spark-2.2.1-bin-hadoop2.7/examples/src/main/python/ml/estimator_transformer_param_example.py return empty parameters when printing "lr.extractParamMap()" That's weird Thanks Le 30 janv. 2018 à 23:10, Bryan

Re: ML:One vs Rest with crossValidator for multinomial in logistic regression

2018-01-30 Thread Bryan Cutler
Hi Michelle, Your original usage of ParamGridBuilder was not quite right, `addGrid` expects (some parameter, array of values for that parameter). If you want to do a grid search with different regularization values, you would do the following: val paramMaps = new

ML:One vs Rest with crossValidator for multinomial in logistic regression

2018-01-30 Thread michelleyang
I tried to use One vs Rest in spark ml with pipeline and crossValidator for multimultinomial in logistic regression. It came out with empty coefficients. I figured out it was the setting of ParamGridBuilder. Can anyone help me understand how does the parameter setting affect the crossValidator