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)


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

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

Instance Attribute Details

#confidenceFloat (readonly)

Returns the value of attribute confidence.

Returns:

  • (Float)


756
757
758
# File 'sig/types.rbs', line 756

def confidence
  @confidence
end

#labelString (readonly)

Returns the value of attribute label.

Returns:

  • (String)


755
756
757
# File 'sig/types.rbs', line 755

def label
  @label
end