Class: Retab::ExperimentConfusionFlowMetric
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::ExperimentConfusionFlowMetric
- Defined in:
- lib/retab/experiment_run_metrics/experiment_confusion_flow_metric.rb
Constant Summary collapse
- HASH_ATTRS =
{ source: :source, target: :target, score: :score }.freeze
Instance Attribute Summary collapse
-
#score ⇒ Object
Returns the value of attribute score.
-
#source ⇒ Object
Returns the value of attribute source.
-
#target ⇒ Object
Returns the value of attribute target.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ ExperimentConfusionFlowMetric
constructor
A new instance of ExperimentConfusionFlowMetric.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ ExperimentConfusionFlowMetric
Returns a new instance of ExperimentConfusionFlowMetric.
19 20 21 22 23 24 |
# File 'lib/retab/experiment_run_metrics/experiment_confusion_flow_metric.rb', line 19 def initialize(json) hash = self.class.normalize(json) @source = hash[:source] @target = hash[:target] @score = hash[:score] end |
Instance Attribute Details
#score ⇒ Object
Returns the value of attribute score.
14 15 16 |
# File 'lib/retab/experiment_run_metrics/experiment_confusion_flow_metric.rb', line 14 def score @score end |
#source ⇒ Object
Returns the value of attribute source.
14 15 16 |
# File 'lib/retab/experiment_run_metrics/experiment_confusion_flow_metric.rb', line 14 def source @source end |
#target ⇒ Object
Returns the value of attribute target.
14 15 16 |
# File 'lib/retab/experiment_run_metrics/experiment_confusion_flow_metric.rb', line 14 def target @target end |