[SPARK-13312][MLLIB] Update java train-validation-split example in ml-guide
[SPARK-13312][MLLIB] Update java train-validation-split example in ml-guide

Response to JIRA https://issues.apache.org/jira/browse/SPARK-13312.

This contribution is my original work and I license the work to this project.

Author: JeremyNixon <jnixon2@gmail.com>

Closes #11199 from JeremyNixon/update_train_val_split_example.

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