[SPARK-9690][ML][PYTHON] pyspark CrossValidator random seed
[SPARK-9690][ML][PYTHON] pyspark CrossValidator random seed

Extend CrossValidator with HasSeed in PySpark.

This PR replaces [https://github.com/apache/spark/pull/7997]

CC: yanboliang thunterdb mmenestret  Would one of you mind taking a look?  Thanks!

Author: Joseph K. Bradley <joseph@databricks.com>
Author: Martin MENESTRET <mmenestret@ippon.fr>

Closes #10268 from jkbradley/pyspark-cv-seed.

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