Class: NexosisApi::Metric
- Inherits:
-
Object
- Object
- NexosisApi::Metric
- Defined in:
- lib/nexosis_api/metric.rb
Overview
Class to parse algorithm metrics from model results
Instance Attribute Summary collapse
-
#name ⇒ String
Friendly name of the metric.
-
#value ⇒ Float
Calculated metric.
Instance Method Summary collapse
-
#initialize(name, value) ⇒ Metric
constructor
A new instance of Metric.
Constructor Details
#initialize(name, value) ⇒ Metric
Returns a new instance of Metric.
4 5 6 7 |
# File 'lib/nexosis_api/metric.rb', line 4 def initialize(name, value) @name = name @value = value end |
Instance Attribute Details
#name ⇒ String
Friendly name of the metric
11 12 13 |
# File 'lib/nexosis_api/metric.rb', line 11 def name @name end |
#value ⇒ Float
Calculated metric
15 16 17 |
# File 'lib/nexosis_api/metric.rb', line 15 def value @value end |