[SPARK-13597][PYSPARK][ML] Python API for GeneralizedLinearRegression
[SPARK-13597][PYSPARK][ML] Python API for GeneralizedLinearRegression

## What changes were proposed in this pull request?

Python API for GeneralizedLinearRegression
JIRA: https://issues.apache.org/jira/browse/SPARK-13597

## How was this patch tested?

The patch is tested with Python doctest.

Author: Kai Jiang <jiangkai@gmail.com>

Closes #11468 from vectorijk/spark-13597.

big-pegasus/spark,ron8hu/spark,srowen/spark,sahilTakiar/spark,kevinyu98/spark,facaiy/spark,alunarbeach/spark,kevinyu98/spark,SHASHANKB/spark,nlalevee/spark,kiszk/spark,minixalpha/spark,shuangshuangwang/spark,yanboliang/spark,bOOm-X/spark,saltstar/spark,SHASHANKB/spark,pgandhi999/spark,bOOm-X/spark,chuckchen/spark,dongjoon-hyun/spark,alunarbeach/spark,sahilTakiar/spark,ron8hu/spark,holdenk/spark,debugger87/spark,map222/spark,wangyum/spark,tengpeng/spark,srowen/spark,ueshin/apache-spark,sachintyagi22/spark,ahnqirage/spark,apache/spark,saturday-shi/spark,sachintyagi22/spark,zhouyejoe/spark,ibm-research-ireland/sparkoscope,caneGuy/spark,loneknightpy/spark,wangmiao1981/spark,bravo-zhang/spark,ueshin/apache-spark,hhbyyh/spark,huang1900/spark,nilsgrabbert/spark,ibm-research-ireland/sparkoscope,dongjoon-hyun/spark,nchammas/spark,metamx/spark,bOOm-X/spark,rezasafi/spark,LantaoJin/spark,nlalevee/spark,Aegeaner/spark,saturday-shi/spark,joseph-torres/spark,WeichenXu123/spark,setjet/spark,vinodkc/spark,akopich/spark,maropu/spark,cin/spark,goldmedal/spark,nilsgrabbert/spark,gioenn/xSpark,ibm-research-ireland/sparkoscope,poffuomo/spark,aosagie/spark,shaneknapp/spark,mahak/spark,mdespriee/spark,mzl9039/spark,shubhamchopra/spark,darionyaphet/spark,janewangfb/spark,witgo/spark,srowen/spark,kimoonkim/spark,dongjoon-hyun/spark,ericvandenbergfb/spark,chuckchen/spark,taroplus/spark,sureshthalamati/spark,zhouyejoe/spark,esi-mineset/spark,andrewor14/spark,szhem/spark,spark-test/spark,apache-spark-on-k8s/spark,skonto/spark,ConeyLiu/spark,shubhamchopra/spark,MLnick/spark,dbtsai/spark,UndeadBaneGitHub/spark,Aegeaner/spark,WeichenXu123/spark,zero323/spark,aokolnychyi/spark,icexelloss/spark,loneknightpy/spark,nchammas/spark,ioana-delaney/spark,szhem/spark,HyukjinKwon/spark,stanzhai/spark,rednaxelafx/apache-spark,shaneknapp/spark,tejasapatil/spark,saturday-shi/spark,bdrillard/spark,JoshRosen/spark,1haodian/spark,ajaysaini725/spark,michalsenkyr/spark,saltstar/spark,JoshRosen/spark,mdespriee/spark,spark-test/spark,big-pegasus/spark,cin/spark,milliman/spark,dongjoon-hyun/spark,ddna1021/spark,akopich/spark,lvdongr/spark,brad-kaiser/spark,zhouyejoe/spark,setjet/spark,milliman/spark,ddna1021/spark,someorz/spark,srowen/spark,ron8hu/spark,holdenk/spark,huang1900/spark,goldmedal/spark,patrick-nicholson/spark,metamx/spark,panfengfeng/spark,bdrillard/spark,caneGuy/spark,andrewor14/spark,gioenn/xSpark,rezasafi/spark,icexelloss/spark,pgandhi999/spark,alunarbeach/spark,jianran/spark,WindCanDie/spark,cloud-fan/spark,szhem/spark,patrick-nicholson/spark,spark-test/spark,LantaoJin/spark,actuaryzhang/spark,cin/spark,rednaxelafx/apache-spark,aokolnychyi/spark,SnappyDataInc/spark,techaddict/spark,highfei2011/spark,sahilTakiar/spark,akopich/spark,zhouyejoe/spark,mzl9039/spark,maropu/spark,wzhfy/spark,michalsenkyr/spark,zero323/spark,sahilTakiar/spark,hvanhovell/spark,rekhajoshm/spark,rednaxelafx/apache-spark,minixalpha/spark,nlalevee/spark,JoshRosen/spark,kissmetrics/spark,shaneknapp/spark,byakuinss/spark,xflin/spark,srowen/spark,liutang123/spark,xuanyuanking/spark,SHASHANKB/spark,srowen/spark,apache-spark-on-k8s/spark,jianran/spark,panfengfeng/spark,kevinyu98/spark,ahnqirage/spark,techaddict/spark,bdrillard/spark,skonto/spark,holdenk/spark,ptkool/spark,UndeadBaneGitHub/spark,mahak/spark,minixalpha/spark,cloud-fan/spark,eyalfa/spark,gioenn/xSpark,patrick-nicholson/spark,map222/spark,ptkool/spark,tengpeng/spark,michalsenkyr/spark,Panos-Bletsos/spark-cost-model-optimizer,saturday-shi/spark,jlopezmalla/spark,hvanhovell/spark,minixalpha/spark,poffuomo/spark,kissmetrics/spark,UndeadBaneGitHub/spark,kissmetrics/spark,brad-kaiser/spark,witgo/spark,spark-test/spark,jianran/spark,saturday-shi/spark,zuotingbing/spark,ueshin/apache-spark,mzl9039/spark,1haodian/spark,patrick-nicholson/spark,WindCanDie/spark,WeichenXu123/spark,bdrillard/spark,ericvandenbergfb/spark,eyalfa/spark,lxsmnv/spark,rekhajoshm/spark,highfei2011/spark,mdespriee/spark,andrewor14/spark,LantaoJin/spark,stanzhai/spark,guoxiaolongzte/spark,ajaysaini725/spark,Panos-Bletsos/spark-cost-model-optimizer,saltstar/spark,someorz/spark,icexelloss/spark,eyalfa/spark,nlalevee/spark,jrshust/spark,rekhajoshm/spark,szhem/spark,ddna1021/spark,liyichao/spark,liutang123/spark,lvdongr/spark,dongjoon-hyun/spark,setjet/spark,dbtsai/spark,nchammas/spark,dhruve/spark,skonto/spark,publicRoman/spark,wangmiao1981/spark,milliman/spark,Aegeaner/spark,BryanCutler/spark,HyukjinKwon/spark,SnappyDataInc/spark,narahari92/spark,someorz/spark,ioana-delaney/spark,WindCanDie/spark,ioana-delaney/spark,tejasapatil/spark,ericvandenbergfb/spark,bravo-zhang/spark,actuaryzhang/spark,aosagie/spark,loneknightpy/spark,kevinyu98/spark,SnappyDataInc/spark,xflin/spark,joseph-torres/spark,wangmiao1981/spark,zzcclp/spark,minixalpha/spark,rikima/spark,maropu/spark,zero323/spark,ioana-delaney/spark,shuangshuangwang/spark,patrick-nicholson/spark,kiszk/spark,kiszk/spark,maropu/spark,darionyaphet/spark,byakuinss/spark,nlalevee/spark,adrian-ionescu/apache-spark,zero323/spark,goldmedal/spark,zzcclp/spark,ericvandenbergfb/spark,wangyum/spark,Panos-Bletsos/spark-cost-model-optimizer,UndeadBaneGitHub/spark,pgandhi999/spark,vinodkc/spark,ConeyLiu/spark,maropu/spark,witgo/spark,big-pegasus/spark,BryanCutler/spark,mike0sv/spark,icexelloss/spark,MLnick/spark,aokolnychyi/spark,goldmedal/spark,aray/spark,zuotingbing/spark,dhruve/spark,dongjoon-hyun/spark,spark-test/spark,aokolnychyi/spark,MLnick/spark,yanboliang/spark,andrewor14/spark,bdrillard/spark,HyukjinKwon/spark,jiangxb1987/spark,UndeadBaneGitHub/spark,ddna1021/spark,milliman/spark,liutang123/spark,shubhamchopra/spark,jkbradley/spark,lvdongr/spark,highfei2011/spark,Panos-Bletsos/spark-cost-model-optimizer,kiszk/spark,rikima/spark,stanzhai/spark,janewangfb/spark,ueshin/apache-spark,liutang123/spark,kimoonkim/spark,hhbyyh/spark,facaiy/spark,ahnqirage/spark,maropu/spark,ajaysaini725/spark,apache-spark-on-k8s/spark,nilsgrabbert/spark,sureshthalamati/spark,nchammas/spark,WindCanDie/spark,markhamstra/spark,lxsmnv/spark,sachintyagi22/spark,milliman/spark,vinodkc/spark,big-pegasus/spark,sachintyagi22/spark,hhbyyh/spark,narahari92/spark,debugger87/spark,esi-mineset/spark,janewangfb/spark,mdespriee/spark,tengpeng/spark,zuotingbing/spark,facaiy/spark,ericvandenbergfb/spark,ioana-delaney/spark,liyichao/spark,huang1900/spark,xflin/spark,Aegeaner/spark,wzhfy/spark,eyalfa/spark,saltstar/spark,alunarbeach/spark,bOOm-X/spark,holdenk/spark,wangmiao1981/spark,ConeyLiu/spark,apache/spark,patrick-nicholson/spark,saltstar/spark,SnappyDataInc/spark,HyukjinKwon/spark,kissmetrics/spark,joseph-torres/spark,ibm-research-ireland/sparkoscope,BryanCutler/spark,JoshRosen/spark,jkbradley/spark,wzhfy/spark,yanboliang/spark,LantaoJin/spark,map222/spark,Aegeaner/spark,nilsgrabbert/spark,xuanyuanking/spark,vinodkc/spark,sureshthalamati/spark,WindCanDie/spark,liutang123/spark,rezasafi/spark,maropu/spark,witgo/spark,adrian-ionescu/apache-spark,jianran/spark,huang1900/spark,darionyaphet/spark,aray/spark,kevinyu98/spark,sureshthalamati/spark,michalsenkyr/spark,rekhajoshm/spark,brad-kaiser/spark,Panos-Bletsos/spark-cost-model-optimizer,facaiy/spark,sureshthalamati/spark,esi-mineset/spark,mike0sv/spark,icexelloss/spark,Panos-Bletsos/spark-cost-model-optimizer,jrshust/spark,goldmedal/spark,jlopezmalla/spark,stanzhai/spark,janewangfb/spark,1haodian/spark,holdenk/spark,rezasafi/spark,liyichao/spark,ahnqirage/spark,sachintyagi22/spark,aray/spark,JerryLead/spark,mike0sv/spark,aosagie/spark,JerryLead/spark,wangyum/spark,tejasapatil/spark,aosagie/spark,dbtsai/spark,loneknightpy/spark,jiangxb1987/spark,bdrillard/spark,eyalfa/spark,patrick-nicholson/spark,cin/spark,1haodian/spark,taroplus/spark,rikima/spark,adrian-ionescu/apache-spark,dbtsai/spark,shaneknapp/spark,hhbyyh/spark,gioenn/xSpark,cin/spark,cloud-fan/spark,ajaysaini725/spark,guoxiaolongzte/spark,tengpeng/spark,lxsmnv/spark,wzhfy/spark,narahari92/spark,apache-spark-on-k8s/spark,esi-mineset/spark,apache-spark-on-k8s/spark,nlalevee/spark,hvanhovell/spark,witgo/spark,xflin/spark,yanboliang/spark,tejasapatil/spark,wangyum/spark,esi-mineset/spark,ddna1021/spark,saltstar/spark,HyukjinKwon/spark,cloud-fan/spark,big-pegasus/spark,LantaoJin/spark,aray/spark,ConeyLiu/spark,tejasapatil/spark,pgandhi999/spark,dhruve/spark,hvanhovell/spark,bOOm-X/spark,gengliangwang/spark,adrian-ionescu/apache-spark,actuaryzhang/spark,MLnick/spark,metamx/spark,narahari92/spark,cloud-fan/spark,mike0sv/spark,jlopezmalla/spark,witgo/spark,ConeyLiu/spark,hvanhovell/spark,tengpeng/spark,wzhfy/spark,zzcclp/spark,ptkool/spark,mzl9039/spark,JoshRosen/spark,shuangshuangwang/spark,ueshin/apache-spark,jrshust/spark,SHASHANKB/spark,someorz/spark,janewangfb/spark,michalsenkyr/spark,eyalfa/spark,taroplus/spark,big-pegasus/spark,apache-spark-on-k8s/spark,alunarbeach/spark,publicRoman/spark,MLnick/spark,akopich/spark,lvdongr/spark,akopich/spark,rikima/spark,xuanyuanking/spark,akopich/spark,WeichenXu123/spark,highfei2011/spark,someorz/spark,actuaryzhang/spark,zhouyejoe/spark,kiszk/spark,kimoonkim/spark,WeichenXu123/spark,bravo-zhang/spark,dongjoon-hyun/spark,aosagie/spark,jkbradley/spark,tejasapatil/spark,szhem/spark,mahak/spark,sureshthalamati/spark,1haodian/spark,spark-test/spark,cin/spark,huang1900/spark,sachintyagi22/spark,loneknightpy/spark,narahari92/spark,lvdongr/spark,jkbradley/spark,dbtsai/spark,ibm-research-ireland/sparkoscope,SnappyDataInc/spark,1haodian/spark,kissmetrics/spark,joseph-torres/spark,wangmiao1981/spark,brad-kaiser/spark,apache/spark,ahnqirage/spark,ahnqirage/spark,loneknightpy/spark,someorz/spark,byakuinss/spark,kevinyu98/spark,hvanhovell/spark,saturday-shi/spark,JoshRosen/spark,highfei2011/spark,rezasafi/spark,sahilTakiar/spark,shuangshuangwang/spark,ron8hu/spark,darionyaphet/spark,guoxiaolongzte/spark,panfengfeng/spark,setjet/spark,brad-kaiser/spark,gengliangwang/spark,ibm-research-ireland/sparkoscope,zuotingbing/spark,matthewfranglen/spark,WindCanDie/spark,ueshin/apache-spark,panfengfeng/spark,shubhamchopra/spark,debugger87/spark,JerryLead/spark,esi-mineset/spark,shubhamchopra/spark,bOOm-X/spark,jlopezmalla/spark,bravo-zhang/spark,szhem/spark,bOOm-X/spark,MLnick/spark,ron8hu/spark,kissmetrics/spark,brad-kaiser/spark,zero323/spark,apache-spark-on-k8s/spark,caneGuy/spark,HyukjinKwon/spark,someorz/spark,byakuinss/spark,stanzhai/spark,narahari92/spark,holdenk/spark,markhamstra/spark,mahak/spark,huang1900/spark,markhamstra/spark,adrian-ionescu/apache-spark,adrian-ionescu/apache-spark,byakuinss/spark,publicRoman/spark,markhamstra/spark,chuckchen/spark,kiszk/spark,stanzhai/spark,WeichenXu123/spark,adrian-ionescu/apache-spark,ericvandenbergfb/spark,rezasafi/spark,SnappyDataInc/spark,mahak/spark,map222/spark,LantaoJin/spark,dbtsai/spark,jkbradley/spark,facaiy/spark,SnappyDataInc/spark,darionyaphet/spark,apache/spark,lvdongr/spark,lxsmnv/spark,shubhamchopra/spark,aray/spark,poffuomo/spark,ericvandenbergfb/spark,zhouyejoe/spark,jianran/spark,byakuinss/spark,guoxiaolongzte/spark,map222/spark,publicRoman/spark,srowen/spark,jrshust/spark,aosagie/spark,ahnqirage/spark,pgandhi999/spark,bravo-zhang/spark,zero323/spark,jlopezmalla/spark,janewangfb/spark,skonto/spark,UndeadBaneGitHub/spark,techaddict/spark,big-pegasus/spark,lxsmnv/spark,ptkool/spark,nilsgrabbert/spark,brad-kaiser/spark,Panos-Bletsos/spark-cost-model-optimizer,BryanCutler/spark,mike0sv/spark,kiszk/spark,yanboliang/spark,mzl9039/spark,map222/spark,zzcclp/spark,sachintyagi22/spark,publicRoman/spark,tengpeng/spark,icexelloss/spark,rednaxelafx/apache-spark,rikima/spark,actuaryzhang/spark,mzl9039/spark,mahak/spark,WeichenXu123/spark,setjet/spark,pgandhi999/spark,yanboliang/spark,dhruve/spark,rikima/spark,panfengfeng/spark,goldmedal/spark,michalsenkyr/spark,caneGuy/spark,mzl9039/spark,sahilTakiar/spark,LantaoJin/spark,zzcclp/spark,apache/spark,zuotingbing/spark,aray/spark,liyichao/spark,loneknightpy/spark,BryanCutler/spark,ConeyLiu/spark,cloud-fan/spark,xflin/spark,1haodian/spark,minixalpha/spark,metamx/spark,SHASHANKB/spark,hhbyyh/spark,shaneknapp/spark,taroplus/spark,markhamstra/spark,wangmiao1981/spark,zero323/spark,actuaryzhang/spark,bravo-zhang/spark,jiangxb1987/spark,ddna1021/spark,mdespriee/spark,JerryLead/spark,kimoonkim/spark,jiangxb1987/spark,markhamstra/spark,ajaysaini725/spark,ptkool/spark,janewangfb/spark,rekhajoshm/spark,huang1900/spark,yanboliang/spark,ron8hu/spark,facaiy/spark,mahak/spark,icexelloss/spark,wangyum/spark,ibm-research-ireland/sparkoscope,debugger87/spark,zuotingbing/spark,wangmiao1981/spark,facaiy/spark,actuaryzhang/spark,eyalfa/spark,markhamstra/spark,mdespriee/spark,chuckchen/spark,stanzhai/spark,saturday-shi/spark,hvanhovell/spark,setjet/spark,minixalpha/spark,narahari92/spark,zzcclp/spark,tengpeng/spark,nchammas/spark,publicRoman/spark,poffuomo/spark,ioana-delaney/spark,nilsgrabbert/spark,shaneknapp/spark,hhbyyh/spark,gioenn/xSpark,nchammas/spark,metamx/spark,JerryLead/spark,witgo/spark,ioana-delaney/spark,jianran/spark,milliman/spark,jiangxb1987/spark,xflin/spark,SHASHANKB/spark,panfengfeng/spark,ConeyLiu/spark,rednaxelafx/apache-spark,JoshRosen/spark,liyichao/spark,gengliangwang/spark,bdrillard/spark,lxsmnv/spark,map222/spark,publicRoman/spark,ron8hu/spark,liyichao/spark,kevinyu98/spark,milliman/spark,taroplus/spark,joseph-torres/spark,gioenn/xSpark,ueshin/apache-spark,debugger87/spark,BryanCutler/spark,xuanyuanking/spark,apache/spark,pgandhi999/spark,liutang123/spark,Aegeaner/spark,ajaysaini725/spark,JerryLead/spark,shuangshuangwang/spark,taroplus/spark,techaddict/spark,liutang123/spark,dhruve/spark,dhruve/spark,aokolnychyi/spark,zzcclp/spark,caneGuy/spark,jkbradley/spark,lvdongr/spark,jrshust/spark,rekhajoshm/spark,jiangxb1987/spark,esi-mineset/spark,UndeadBaneGitHub/spark,zuotingbing/spark,jrshust/spark,gengliangwang/spark,wangyum/spark,ddna1021/spark,aokolnychyi/spark,gengliangwang/spark,tejasapatil/spark,vinodkc/spark,techaddict/spark,WindCanDie/spark,spark-test/spark,gengliangwang/spark,liyichao/spark,szhem/spark,debugger87/spark,byakuinss/spark,skonto/spark,rikima/spark,alunarbeach/spark,bravo-zhang/spark,andrewor14/spark,MLnick/spark,aray/spark,rekhajoshm/spark,setjet/spark,HyukjinKwon/spark,caneGuy/spark,metamx/spark,andrewor14/spark,rednaxelafx/apache-spark,techaddict/spark,ptkool/spark,xuanyuanking/spark,andrewor14/spark,hhbyyh/spark,nlalevee/spark,vinodkc/spark,saltstar/spark,dbtsai/spark,nilsgrabbert/spark,kimoonkim/spark,debugger87/spark,shuangshuangwang/spark,rednaxelafx/apache-spark,jianran/spark,jlopezmalla/spark,xuanyuanking/spark,dhruve/spark,skonto/spark,vinodkc/spark,rezasafi/spark,akopich/spark,shubhamchopra/spark,kissmetrics/spark,sureshthalamati/spark,poffuomo/spark,goldmedal/spark,metamx/spark,JerryLead/spark,jlopezmalla/spark,guoxiaolongzte/spark,joseph-torres/spark,kimoonkim/spark,zhouyejoe/spark,gengliangwang/spark,darionyaphet/spark,jkbradley/spark,xflin/spark,wzhfy/spark,taroplus/spark,skonto/spark,joseph-torres/spark,jiangxb1987/spark,kimoonkim/spark,alunarbeach/spark,BryanCutler/spark,chuckchen/spark,guoxiaolongzte/spark,cin/spark,SHASHANKB/spark,mike0sv/spark,aosagie/spark,michalsenkyr/spark,Aegeaner/spark,xuanyuanking/spark,chuckchen/spark,guoxiaolongzte/spark,poffuomo/spark,highfei2011/spark,mike0sv/spark,mdespriee/spark,chuckchen/spark,lxsmnv/spark,nchammas/spark,ajaysaini725/spark,shuangshuangwang/spark,cloud-fan/spark,poffuomo/spark,ptkool/spark,techaddict/spark,panfengfeng/spark,aokolnychyi/spark,jrshust/spark,gioenn/xSpark,darionyaphet/spark,wangyum/spark,highfei2011/spark,caneGuy/spark,sahilTakiar/spark,holdenk/spark,wzhfy/spark,shaneknapp/spark,apache/spark