Class: Rafflesia::SequenceCandidateBenchmarkSummary
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SequenceCandidateBenchmarkSummary
- 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
-
#candidate_count ⇒ Object
Returns the value of attribute candidate_count.
-
#hit_rate_at_1 ⇒ Object
Returns the value of attribute hit_rate_at_1.
-
#materialized_database_bytes ⇒ Object
Returns the value of attribute materialized_database_bytes.
-
#max_object_bytes_per_query ⇒ Object
Returns the value of attribute max_object_bytes_per_query.
-
#max_object_reads_per_query ⇒ Object
Returns the value of attribute max_object_reads_per_query.
-
#mean_object_bytes_per_query ⇒ Object
Returns the value of attribute mean_object_bytes_per_query.
-
#mean_object_reads_per_query ⇒ Object
Returns the value of attribute mean_object_reads_per_query.
-
#mean_recall_at_k ⇒ Object
Returns the value of attribute mean_recall_at_k.
-
#mean_top_hit_identity ⇒ Object
Returns the value of attribute mean_top_hit_identity.
-
#min_recall_at_k ⇒ Object
Returns the value of attribute min_recall_at_k.
-
#min_top_hit_identity ⇒ Object
Returns the value of attribute min_top_hit_identity.
-
#object_bytes_fetched ⇒ Object
Returns the value of attribute object_bytes_fetched.
-
#object_read_count ⇒ Object
Returns the value of attribute object_read_count.
-
#p_50_latency_ms ⇒ Object
Returns the value of attribute p_50_latency_ms.
-
#p_95_latency_ms ⇒ Object
Returns the value of attribute p_95_latency_ms.
-
#passed ⇒ Object
Returns the value of attribute passed.
-
#query_count ⇒ Object
Returns the value of attribute query_count.
-
#reasons ⇒ Object
Returns the value of attribute reasons.
-
#record_count ⇒ Object
Returns the value of attribute record_count.
-
#require_top_hit_id_matches_query_id ⇒ Object
Returns the value of attribute require_top_hit_id_matches_query_id.
-
#require_zero_materialization ⇒ Object
Returns the value of attribute require_zero_materialization.
Instance Method Summary collapse
-
#initialize(json) ⇒ SequenceCandidateBenchmarkSummary
constructor
A new instance of SequenceCandidateBenchmarkSummary.
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_count ⇒ Object
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_1 ⇒ Object
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_bytes ⇒ Object
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_query ⇒ Object
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_query ⇒ Object
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_query ⇒ Object
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_query ⇒ Object
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_k ⇒ Object
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_identity ⇒ Object
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_k ⇒ Object
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_identity ⇒ Object
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_fetched ⇒ Object
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_count ⇒ Object
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_ms ⇒ Object
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_ms ⇒ Object
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 |
#passed ⇒ Object
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_count ⇒ Object
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 |
#reasons ⇒ Object
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_count ⇒ Object
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_id ⇒ Object
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_materialization ⇒ Object
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 |