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)


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

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

Instance Attribute Details

#confidenceFloat? (readonly)

Returns the value of attribute confidence.

Returns:

  • (Float, nil)


237
238
239
# File 'sig/types.rbs', line 237

def confidence
  @confidence
end

#labelString (readonly)

Returns the value of attribute label.

Returns:

  • (String)


236
237
238
# File 'sig/types.rbs', line 236

def label
  @label
end