Class: Xberg::ClassificationLabel

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeClassificationLabel

Returns a new instance of ClassificationLabel.

Parameters:

  • label: (String)
  • confidence: (Float)


789
# File 'sig/types.rbs', line 789

def initialize: (label: String, ?confidence: Float) -> void

Instance Attribute Details

#confidenceFloat (readonly)

Returns the value of attribute confidence.

Returns:

  • (Float)


787
788
789
# File 'sig/types.rbs', line 787

def confidence
  @confidence
end

#labelString (readonly)

Returns the value of attribute label.

Returns:

  • (String)


786
787
788
# File 'sig/types.rbs', line 786

def label
  @label
end