Class: Rafflesia::FoldIndexBenchmarkGate

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_fractionObject

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_1Object

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_10Object

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_100Object

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

#passedObject

Returns the value of attribute passed.



17
18
19
# File 'lib/rafflesia/proteins/fold_index_benchmark_gate.rb', line 17

def passed
  @passed
end

#reasonsObject

Returns the value of attribute reasons.



17
18
19
# File 'lib/rafflesia/proteins/fold_index_benchmark_gate.rb', line 17

def reasons
  @reasons
end