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