Class: Rafflesia::FoldIndexRoutingBenchmarkSummary

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/fold_index_routing_benchmark_summary.rb

Constant Summary collapse

HASH_ATTRS =
{
  benchmark_id: :benchmark_id,
  byte_reduction_fraction: :byte_reduction_fraction,
  eligible_query_count: :eligible_query_count,
  manifest_id: :manifest_id,
  nprobe: :nprobe,
  passed: :passed,
  query_count: :query_count,
  recall_at_1: :recall_at_1,
  recall_at_10: :recall_at_10,
  recall_at_100: :recall_at_100,
  routed_fallback_count: :routed_fallback_count
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldIndexRoutingBenchmarkSummary

Returns a new instance of FoldIndexRoutingBenchmarkSummary.



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/rafflesia/proteins/fold_index_routing_benchmark_summary.rb', line 35

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @benchmark_id = hash[:benchmark_id]
  @byte_reduction_fraction = hash[:byte_reduction_fraction]
  @eligible_query_count = hash[:eligible_query_count]
  @manifest_id = hash[:manifest_id]
  @nprobe = hash[:nprobe]
  @passed = hash[:passed]
  @query_count = hash[:query_count]
  @recall_at_1 = hash[:recall_at_1]
  @recall_at_10 = hash[:recall_at_10]
  @recall_at_100 = hash[:recall_at_100]
  @routed_fallback_count = hash[:routed_fallback_count]
end

Instance Attribute Details

#benchmark_idObject

Returns the value of attribute benchmark_id.



22
23
24
# File 'lib/rafflesia/proteins/fold_index_routing_benchmark_summary.rb', line 22

def benchmark_id
  @benchmark_id
end

#byte_reduction_fractionObject

Returns the value of attribute byte_reduction_fraction.



22
23
24
# File 'lib/rafflesia/proteins/fold_index_routing_benchmark_summary.rb', line 22

def byte_reduction_fraction
  @byte_reduction_fraction
end

#eligible_query_countObject

Returns the value of attribute eligible_query_count.



22
23
24
# File 'lib/rafflesia/proteins/fold_index_routing_benchmark_summary.rb', line 22

def eligible_query_count
  @eligible_query_count
end

#manifest_idObject

Returns the value of attribute manifest_id.



22
23
24
# File 'lib/rafflesia/proteins/fold_index_routing_benchmark_summary.rb', line 22

def manifest_id
  @manifest_id
end

#nprobeObject

Returns the value of attribute nprobe.



22
23
24
# File 'lib/rafflesia/proteins/fold_index_routing_benchmark_summary.rb', line 22

def nprobe
  @nprobe
end

#passedObject

Returns the value of attribute passed.



22
23
24
# File 'lib/rafflesia/proteins/fold_index_routing_benchmark_summary.rb', line 22

def passed
  @passed
end

#query_countObject

Returns the value of attribute query_count.



22
23
24
# File 'lib/rafflesia/proteins/fold_index_routing_benchmark_summary.rb', line 22

def query_count
  @query_count
end

#recall_at_1Object

Returns the value of attribute recall_at_1.



22
23
24
# File 'lib/rafflesia/proteins/fold_index_routing_benchmark_summary.rb', line 22

def recall_at_1
  @recall_at_1
end

#recall_at_10Object

Returns the value of attribute recall_at_10.



22
23
24
# File 'lib/rafflesia/proteins/fold_index_routing_benchmark_summary.rb', line 22

def recall_at_10
  @recall_at_10
end

#recall_at_100Object

Returns the value of attribute recall_at_100.



22
23
24
# File 'lib/rafflesia/proteins/fold_index_routing_benchmark_summary.rb', line 22

def recall_at_100
  @recall_at_100
end

#routed_fallback_countObject

Returns the value of attribute routed_fallback_count.



22
23
24
# File 'lib/rafflesia/proteins/fold_index_routing_benchmark_summary.rb', line 22

def routed_fallback_count
  @routed_fallback_count
end