class Spark::Mllib::ClassificationModel
Attributes
intercept[R]
threshold[R]
weights[R]
Public Class Methods
new(weights, intercept)
click to toggle source
# File lib/spark/mllib/classification/common.rb, line 7 def initialize(weights, intercept) @weights = Spark::Mllib::Vectors.to_vector(weights) @intercept = intercept.to_f @threshold = nil end
Public Instance Methods
clear_threshold()
click to toggle source
# File lib/spark/mllib/classification/common.rb, line 17 def clear_threshold @threshold = nil end
threshold=(value)
click to toggle source
# File lib/spark/mllib/classification/common.rb, line 13 def threshold=(value) @threshold = value.to_f end