Commit ab095229 authored by 王志伟's avatar 王志伟

统计推荐日记重复指标

parent 168fd350
......@@ -233,7 +233,7 @@ object Repeated_content_recommendation {
println(more_than2)
val all =get_result.map(_._2).reduce((x,y)=>x+y)
println(all)
val repeated_rate=more_than2/all
val repeated_rate= more_than2 / all.toDouble
println(repeated_rate)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment