[SPARK-7651] [MLLIB] [PYSPARK] GMM predict, predictSoft should raise error on bad input
[SPARK-7651] [MLLIB] [PYSPARK] GMM predict, predictSoft should raise error on bad input

In the Python API for Gaussian Mixture Model, predict() and predictSoft() methods should raise an error when the input argument is not an RDD.

Author: FlytxtRnD <meethu.mathew@flytxt.com>

Closes #6180 from FlytxtRnD/GmmPredictException and squashes the following commits:

4b6aa11 [FlytxtRnD] Raise error if the input to predict()/predictSoft() is not an RDD

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