class Jubatus::Classifier::EstimateResult
Constants
- TYPE
Attributes
label[R]
score[R]
Public Class Methods
from_msgpack(m)
click to toggle source
# File lib/jubatus/classifier/types.rb, line 25 def EstimateResult.from_msgpack(m) val = TYPE.from_msgpack(m) EstimateResult.new(*val) end
new(label, score)
click to toggle source
# File lib/jubatus/classifier/types.rb, line 15 def initialize(label, score) @label = label @score = score end
Public Instance Methods
to_msgpack(out = '')
click to toggle source
# File lib/jubatus/classifier/types.rb, line 20 def to_msgpack(out = '') t = [@label, @score] return TYPE.to_msgpack(t) end
to_s()
click to toggle source
# File lib/jubatus/classifier/types.rb, line 30 def to_s gen = Jubatus::Common::MessageStringGenerator.new gen.open("estimate_result") gen.add("label", @label) gen.add("score", @score) gen.close() return gen.to_s end