val intercept = model.intercept
val margin = dot(model.weights, features) + intercept
val score = 1.0 / (1.0 + math.exp(-margin))
在源码里面默认的是如果score>0.5,则返回的label是1,否则是0
val intercept = model.intercept
val margin = dot(model.weights, features) + intercept
val score = 1.0 / (1.0 + math.exp(-margin))
在源码里面默认的是如果score>0.5,则返回的label是1,否则是0