PySpark - mean function -


i have problem mean function in pyspark. tried applying mean function follow

*mse = rdd.map(lambda x : (x[2]-predictedrating(x,p,q))**2).mean()* 

where preditecrating function declared before, never ends , tells me stuck @ mean(). don't understand why doesn't work?

thank help!


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -