Class: Rafflesia::CorpuReleaseStructurePairGeometryBenchmarkMetrics

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/datasets/corpu_release_structure_pair_geometry_benchmark_metrics.rb

Constant Summary collapse

HASH_ATTRS =
{
  bytes_read_total: :bytes_read_total,
  candidates_examined_total: :candidates_examined_total,
  hit_rate_at_k: :hit_rate_at_k,
  mean_latency_ms: :mean_latency_ms,
  mean_recall_at_k: :mean_recall_at_k,
  object_reads_total: :object_reads_total,
  query_count: :query_count,
  recall_millis: :recall_millis
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ CorpuReleaseStructurePairGeometryBenchmarkMetrics

Returns a new instance of CorpuReleaseStructurePairGeometryBenchmarkMetrics.



29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/rafflesia/datasets/corpu_release_structure_pair_geometry_benchmark_metrics.rb', line 29

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @bytes_read_total = hash[:bytes_read_total]
  @candidates_examined_total = hash[:candidates_examined_total]
  @hit_rate_at_k = hash[:hit_rate_at_k]
  @mean_latency_ms = hash[:mean_latency_ms]
  @mean_recall_at_k = hash[:mean_recall_at_k]
  @object_reads_total = hash[:object_reads_total]
  @query_count = hash[:query_count]
  @recall_millis = hash[:recall_millis]
end

Instance Attribute Details

#bytes_read_totalObject

Returns the value of attribute bytes_read_total.



19
20
21
# File 'lib/rafflesia/datasets/corpu_release_structure_pair_geometry_benchmark_metrics.rb', line 19

def bytes_read_total
  @bytes_read_total
end

#candidates_examined_totalObject

Returns the value of attribute candidates_examined_total.



19
20
21
# File 'lib/rafflesia/datasets/corpu_release_structure_pair_geometry_benchmark_metrics.rb', line 19

def candidates_examined_total
  @candidates_examined_total
end

#hit_rate_at_kObject

Returns the value of attribute hit_rate_at_k.



19
20
21
# File 'lib/rafflesia/datasets/corpu_release_structure_pair_geometry_benchmark_metrics.rb', line 19

def hit_rate_at_k
  @hit_rate_at_k
end

#mean_latency_msObject

Returns the value of attribute mean_latency_ms.



19
20
21
# File 'lib/rafflesia/datasets/corpu_release_structure_pair_geometry_benchmark_metrics.rb', line 19

def mean_latency_ms
  @mean_latency_ms
end

#mean_recall_at_kObject

Returns the value of attribute mean_recall_at_k.



19
20
21
# File 'lib/rafflesia/datasets/corpu_release_structure_pair_geometry_benchmark_metrics.rb', line 19

def mean_recall_at_k
  @mean_recall_at_k
end

#object_reads_totalObject

Returns the value of attribute object_reads_total.



19
20
21
# File 'lib/rafflesia/datasets/corpu_release_structure_pair_geometry_benchmark_metrics.rb', line 19

def object_reads_total
  @object_reads_total
end

#query_countObject

Returns the value of attribute query_count.



19
20
21
# File 'lib/rafflesia/datasets/corpu_release_structure_pair_geometry_benchmark_metrics.rb', line 19

def query_count
  @query_count
end

#recall_millisObject

Returns the value of attribute recall_millis.



19
20
21
# File 'lib/rafflesia/datasets/corpu_release_structure_pair_geometry_benchmark_metrics.rb', line 19

def recall_millis
  @recall_millis
end