Class: Rafflesia::FoldIndexBenchmarkGate
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::FoldIndexBenchmarkGate
- Defined in:
- lib/rafflesia/proteins/fold_index_benchmark_gate.rb
Constant Summary collapse
- HASH_ATTRS =
{ min_byte_reduction_fraction: :min_byte_reduction_fraction, min_recall_at_1: :min_recall_at_1, min_recall_at_10: :min_recall_at_10, min_recall_at_100: :min_recall_at_100, passed: :passed, reasons: :reasons }.freeze
Instance Attribute Summary collapse
-
#min_byte_reduction_fraction ⇒ Object
Returns the value of attribute min_byte_reduction_fraction.
-
#min_recall_at_1 ⇒ Object
Returns the value of attribute min_recall_at_1.
-
#min_recall_at_10 ⇒ Object
Returns the value of attribute min_recall_at_10.
-
#min_recall_at_100 ⇒ Object
Returns the value of attribute min_recall_at_100.
-
#passed ⇒ Object
Returns the value of attribute passed.
-
#reasons ⇒ Object
Returns the value of attribute reasons.
Instance Method Summary collapse
-
#initialize(json) ⇒ FoldIndexBenchmarkGate
constructor
A new instance of FoldIndexBenchmarkGate.
Constructor Details
#initialize(json) ⇒ FoldIndexBenchmarkGate
Returns a new instance of FoldIndexBenchmarkGate.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rafflesia/proteins/fold_index_benchmark_gate.rb', line 25 def initialize(json) super() hash = self.class.normalize(json) @min_byte_reduction_fraction = hash[:min_byte_reduction_fraction] @min_recall_at_1 = hash[:min_recall_at_1] @min_recall_at_10 = hash[:min_recall_at_10] @min_recall_at_100 = hash[:min_recall_at_100] @passed = hash[:passed] @reasons = (hash[:reasons] || []) end |
Instance Attribute Details
#min_byte_reduction_fraction ⇒ Object
Returns the value of attribute min_byte_reduction_fraction.
17 18 19 |
# File 'lib/rafflesia/proteins/fold_index_benchmark_gate.rb', line 17 def min_byte_reduction_fraction @min_byte_reduction_fraction end |
#min_recall_at_1 ⇒ Object
Returns the value of attribute min_recall_at_1.
17 18 19 |
# File 'lib/rafflesia/proteins/fold_index_benchmark_gate.rb', line 17 def min_recall_at_1 @min_recall_at_1 end |
#min_recall_at_10 ⇒ Object
Returns the value of attribute min_recall_at_10.
17 18 19 |
# File 'lib/rafflesia/proteins/fold_index_benchmark_gate.rb', line 17 def min_recall_at_10 @min_recall_at_10 end |
#min_recall_at_100 ⇒ Object
Returns the value of attribute min_recall_at_100.
17 18 19 |
# File 'lib/rafflesia/proteins/fold_index_benchmark_gate.rb', line 17 def min_recall_at_100 @min_recall_at_100 end |
#passed ⇒ Object
Returns the value of attribute passed.
17 18 19 |
# File 'lib/rafflesia/proteins/fold_index_benchmark_gate.rb', line 17 def passed @passed end |
#reasons ⇒ Object
Returns the value of attribute reasons.
17 18 19 |
# File 'lib/rafflesia/proteins/fold_index_benchmark_gate.rb', line 17 def reasons @reasons end |