Class: Rafflesia::SequenceCandidateBenchmarkSummary

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/sequences/sequence_candidate_benchmark_summary.rb

Constant Summary collapse

HASH_ATTRS =
{
  candidate_count: :candidate_count,
  hit_rate_at_1: :hit_rate_at_1,
  materialized_database_bytes: :materialized_database_bytes,
  max_object_bytes_per_query: :max_object_bytes_per_query,
  max_object_reads_per_query: :max_object_reads_per_query,
  mean_object_bytes_per_query: :mean_object_bytes_per_query,
  mean_object_reads_per_query: :mean_object_reads_per_query,
  mean_recall_at_k: :mean_recall_at_k,
  mean_top_hit_identity: :mean_top_hit_identity,
  min_recall_at_k: :min_recall_at_k,
  min_top_hit_identity: :min_top_hit_identity,
  object_bytes_fetched: :object_bytes_fetched,
  object_read_count: :object_read_count,
  p50_latency_ms: :p_50_latency_ms,
  p95_latency_ms: :p_95_latency_ms,
  passed: :passed,
  query_count: :query_count,
  reasons: :reasons,
  record_count: :record_count,
  require_top_hit_id_matches_query_id: :require_top_hit_id_matches_query_id,
  require_zero_materialization: :require_zero_materialization
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SequenceCandidateBenchmarkSummary

Returns a new instance of SequenceCandidateBenchmarkSummary.



55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_summary.rb', line 55

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @candidate_count = hash[:candidate_count]
  @hit_rate_at_1 = hash[:hit_rate_at_1]
  @materialized_database_bytes = hash[:materialized_database_bytes]
  @max_object_bytes_per_query = hash[:max_object_bytes_per_query]
  @max_object_reads_per_query = hash[:max_object_reads_per_query]
  @mean_object_bytes_per_query = hash[:mean_object_bytes_per_query]
  @mean_object_reads_per_query = hash[:mean_object_reads_per_query]
  @mean_recall_at_k = hash[:mean_recall_at_k]
  @mean_top_hit_identity = hash[:mean_top_hit_identity]
  @min_recall_at_k = hash[:min_recall_at_k]
  @min_top_hit_identity = hash[:min_top_hit_identity]
  @object_bytes_fetched = hash[:object_bytes_fetched]
  @object_read_count = hash[:object_read_count]
  @p_50_latency_ms = hash[:p50_latency_ms]
  @p_95_latency_ms = hash[:p95_latency_ms]
  @passed = hash[:passed]
  @query_count = hash[:query_count]
  @reasons = (hash[:reasons] || [])
  @record_count = hash[:record_count]
  @require_top_hit_id_matches_query_id = hash[:require_top_hit_id_matches_query_id]
  @require_zero_materialization = hash[:require_zero_materialization]
end

Instance Attribute Details

#candidate_countObject

Returns the value of attribute candidate_count.



32
33
34
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_summary.rb', line 32

def candidate_count
  @candidate_count
end

#hit_rate_at_1Object

Returns the value of attribute hit_rate_at_1.



32
33
34
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_summary.rb', line 32

def hit_rate_at_1
  @hit_rate_at_1
end

#materialized_database_bytesObject

Returns the value of attribute materialized_database_bytes.



32
33
34
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_summary.rb', line 32

def materialized_database_bytes
  @materialized_database_bytes
end

#max_object_bytes_per_queryObject

Returns the value of attribute max_object_bytes_per_query.



32
33
34
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_summary.rb', line 32

def max_object_bytes_per_query
  @max_object_bytes_per_query
end

#max_object_reads_per_queryObject

Returns the value of attribute max_object_reads_per_query.



32
33
34
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_summary.rb', line 32

def max_object_reads_per_query
  @max_object_reads_per_query
end

#mean_object_bytes_per_queryObject

Returns the value of attribute mean_object_bytes_per_query.



32
33
34
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_summary.rb', line 32

def mean_object_bytes_per_query
  @mean_object_bytes_per_query
end

#mean_object_reads_per_queryObject

Returns the value of attribute mean_object_reads_per_query.



32
33
34
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_summary.rb', line 32

def mean_object_reads_per_query
  @mean_object_reads_per_query
end

#mean_recall_at_kObject

Returns the value of attribute mean_recall_at_k.



32
33
34
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_summary.rb', line 32

def mean_recall_at_k
  @mean_recall_at_k
end

#mean_top_hit_identityObject

Returns the value of attribute mean_top_hit_identity.



32
33
34
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_summary.rb', line 32

def mean_top_hit_identity
  @mean_top_hit_identity
end

#min_recall_at_kObject

Returns the value of attribute min_recall_at_k.



32
33
34
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_summary.rb', line 32

def min_recall_at_k
  @min_recall_at_k
end

#min_top_hit_identityObject

Returns the value of attribute min_top_hit_identity.



32
33
34
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_summary.rb', line 32

def min_top_hit_identity
  @min_top_hit_identity
end

#object_bytes_fetchedObject

Returns the value of attribute object_bytes_fetched.



32
33
34
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_summary.rb', line 32

def object_bytes_fetched
  @object_bytes_fetched
end

#object_read_countObject

Returns the value of attribute object_read_count.



32
33
34
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_summary.rb', line 32

def object_read_count
  @object_read_count
end

#p_50_latency_msObject

Returns the value of attribute p_50_latency_ms.



32
33
34
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_summary.rb', line 32

def p_50_latency_ms
  @p_50_latency_ms
end

#p_95_latency_msObject

Returns the value of attribute p_95_latency_ms.



32
33
34
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_summary.rb', line 32

def p_95_latency_ms
  @p_95_latency_ms
end

#passedObject

Returns the value of attribute passed.



32
33
34
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_summary.rb', line 32

def passed
  @passed
end

#query_countObject

Returns the value of attribute query_count.



32
33
34
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_summary.rb', line 32

def query_count
  @query_count
end

#reasonsObject

Returns the value of attribute reasons.



32
33
34
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_summary.rb', line 32

def reasons
  @reasons
end

#record_countObject

Returns the value of attribute record_count.



32
33
34
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_summary.rb', line 32

def record_count
  @record_count
end

#require_top_hit_id_matches_query_idObject

Returns the value of attribute require_top_hit_id_matches_query_id.



32
33
34
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_summary.rb', line 32

def require_top_hit_id_matches_query_id
  @require_top_hit_id_matches_query_id
end

#require_zero_materializationObject

Returns the value of attribute require_zero_materialization.



32
33
34
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_summary.rb', line 32

def require_zero_materialization
  @require_zero_materialization
end