Class: Rafflesia::CorpuReleaseStructurePairGeometryBenchmarkDelta

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/datasets/corpu_release_structure_pair_geometry_benchmark_delta.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
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ CorpuReleaseStructurePairGeometryBenchmarkDelta

Returns a new instance of CorpuReleaseStructurePairGeometryBenchmarkDelta.



25
26
27
28
29
30
31
32
33
34
# File 'lib/rafflesia/datasets/corpu_release_structure_pair_geometry_benchmark_delta.rb', line 25

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]
end

Instance Attribute Details

#bytes_read_totalObject

Returns the value of attribute bytes_read_total.



17
18
19
# File 'lib/rafflesia/datasets/corpu_release_structure_pair_geometry_benchmark_delta.rb', line 17

def bytes_read_total
  @bytes_read_total
end

#candidates_examined_totalObject

Returns the value of attribute candidates_examined_total.



17
18
19
# File 'lib/rafflesia/datasets/corpu_release_structure_pair_geometry_benchmark_delta.rb', line 17

def candidates_examined_total
  @candidates_examined_total
end

#hit_rate_at_kObject

Returns the value of attribute hit_rate_at_k.



17
18
19
# File 'lib/rafflesia/datasets/corpu_release_structure_pair_geometry_benchmark_delta.rb', line 17

def hit_rate_at_k
  @hit_rate_at_k
end

#mean_latency_msObject

Returns the value of attribute mean_latency_ms.



17
18
19
# File 'lib/rafflesia/datasets/corpu_release_structure_pair_geometry_benchmark_delta.rb', line 17

def mean_latency_ms
  @mean_latency_ms
end

#mean_recall_at_kObject

Returns the value of attribute mean_recall_at_k.



17
18
19
# File 'lib/rafflesia/datasets/corpu_release_structure_pair_geometry_benchmark_delta.rb', line 17

def mean_recall_at_k
  @mean_recall_at_k
end

#object_reads_totalObject

Returns the value of attribute object_reads_total.



17
18
19
# File 'lib/rafflesia/datasets/corpu_release_structure_pair_geometry_benchmark_delta.rb', line 17

def object_reads_total
  @object_reads_total
end