Class: Rafflesia::FoldCollectionBenchmarkData

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

Constant Summary collapse

HASH_ATTRS =
{
  backend: :backend,
  baseline_object_bytes_fetched: :baseline_object_bytes_fetched,
  baseline_object_read_count: :baseline_object_read_count,
  baseline_planned_object_bytes: :baseline_planned_object_bytes,
  baseline_planned_object_reads: :baseline_planned_object_reads,
  baseline_range_bytes_fetched: :baseline_range_bytes_fetched,
  baseline_range_read_count: :baseline_range_read_count,
  baseline_searched_segment_count: :baseline_searched_segment_count,
  baseline_selected_block_bytes: :baseline_selected_block_bytes,
  baseline_selected_block_count: :baseline_selected_block_count,
  benchmark_id: :benchmark_id,
  benchmark_object: :benchmark_object,
  byte_reduction_fraction: :byte_reduction_fraction,
  calibration_object: :calibration_object,
  calibration_object_id: :calibration_object_id,
  calibration_profile: :calibration_profile,
  collection_id: :collection_id,
  created_at: :created_at,
  eligible_query_count: :eligible_query_count,
  gate: :gate,
  limit: :limit,
  max_segments: :max_segments,
  mean_hit_overlap_fraction: :mean_hit_overlap_fraction,
  mean_routed_score_coverage: :mean_routed_score_coverage,
  min_routed_score_coverage: :min_routed_score_coverage,
  min_routing_score_coverage: :min_routing_score_coverage,
  nprobe: :nprobe,
  object_read_reduction_fraction: :object_read_reduction_fraction,
  passed: :passed,
  query_count: :query_count,
  recall_at: :recall_at,
  ref: :ref,
  require_adaptive_routing: :require_adaptive_routing,
  require_routing: :require_routing,
  results: :results,
  routed_exact_hit_count: :routed_exact_hit_count,
  routed_exact_materialized_bytes: :routed_exact_materialized_bytes,
  routed_exact_object_bytes: :routed_exact_object_bytes,
  routed_exact_object_read_count: :routed_exact_object_read_count,
  routed_exact_verified: :routed_exact_verified,
  routed_materialized_bytes: :routed_materialized_bytes,
  routed_object_bytes_fetched: :routed_object_bytes_fetched,
  routed_object_read_count: :routed_object_read_count,
  routed_planned_object_bytes: :routed_planned_object_bytes,
  routed_planned_object_reads: :routed_planned_object_reads,
  routed_range_bytes_fetched: :routed_range_bytes_fetched,
  routed_range_read_count: :routed_range_read_count,
  routed_searched_segment_count: :routed_searched_segment_count,
  routed_selected_block_bytes: :routed_selected_block_bytes,
  routed_selected_block_count: :routed_selected_block_count,
  routed_selected_block_ids: :routed_selected_block_ids,
  routed_skipped_segment_count: :routed_skipped_segment_count,
  routing_directory_object_id: :routing_directory_object_id,
  routing_mode: :routing_mode,
  segment_count: :segment_count,
  segment_reduction_fraction: :segment_reduction_fraction,
  segment_refs: :segment_refs,
  snapshot_ref: :snapshot_ref,
  target_score_coverage: :target_score_coverage
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldCollectionBenchmarkData

Returns a new instance of FoldCollectionBenchmarkData.



131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 131

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @backend = hash[:backend]
  @baseline_object_bytes_fetched = hash[:baseline_object_bytes_fetched]
  @baseline_object_read_count = hash[:baseline_object_read_count]
  @baseline_planned_object_bytes = hash[:baseline_planned_object_bytes]
  @baseline_planned_object_reads = hash[:baseline_planned_object_reads]
  @baseline_range_bytes_fetched = hash[:baseline_range_bytes_fetched]
  @baseline_range_read_count = hash[:baseline_range_read_count]
  @baseline_searched_segment_count = hash[:baseline_searched_segment_count]
  @baseline_selected_block_bytes = hash[:baseline_selected_block_bytes]
  @baseline_selected_block_count = hash[:baseline_selected_block_count]
  @benchmark_id = hash[:benchmark_id]
  @benchmark_object = hash[:benchmark_object] ? Rafflesia::ObjectRef.new(hash[:benchmark_object]) : nil
  @byte_reduction_fraction = hash[:byte_reduction_fraction]
  @calibration_object = hash[:calibration_object] ? Rafflesia::ObjectRef.new(hash[:calibration_object]) : nil
  @calibration_object_id = hash[:calibration_object_id]
  @calibration_profile = hash[:calibration_profile] ? Rafflesia::FoldCollectionCalibrationProfile.new(hash[:calibration_profile]) : nil
  @collection_id = hash[:collection_id]
  @created_at = hash[:created_at]
  @eligible_query_count = hash[:eligible_query_count]
  @gate = hash[:gate] ? Rafflesia::FoldSegmentBenchmarkGate.new(hash[:gate]) : nil
  @limit = hash[:limit]
  @max_segments = hash[:max_segments]
  @mean_hit_overlap_fraction = hash[:mean_hit_overlap_fraction]
  @mean_routed_score_coverage = hash[:mean_routed_score_coverage]
  @min_routed_score_coverage = hash[:min_routed_score_coverage]
  @min_routing_score_coverage = hash[:min_routing_score_coverage]
  @nprobe = hash[:nprobe]
  @object_read_reduction_fraction = hash[:object_read_reduction_fraction]
  @passed = hash[:passed]
  @query_count = hash[:query_count]
  @recall_at = (hash[:recall_at] || []).map { |item| item ? Rafflesia::FoldSegmentRecallMeasurement.new(item) : nil }
  @ref = hash[:ref]
  @require_adaptive_routing = hash[:require_adaptive_routing]
  @require_routing = hash[:require_routing]
  @results = (hash[:results] || []).map { |item| item ? Rafflesia::FoldCollectionBenchmarkQueryResult.new(item) : nil }
  @routed_exact_hit_count = hash[:routed_exact_hit_count]
  @routed_exact_materialized_bytes = hash[:routed_exact_materialized_bytes]
  @routed_exact_object_bytes = hash[:routed_exact_object_bytes]
  @routed_exact_object_read_count = hash[:routed_exact_object_read_count]
  @routed_exact_verified = hash[:routed_exact_verified]
  @routed_materialized_bytes = hash[:routed_materialized_bytes]
  @routed_object_bytes_fetched = hash[:routed_object_bytes_fetched]
  @routed_object_read_count = hash[:routed_object_read_count]
  @routed_planned_object_bytes = hash[:routed_planned_object_bytes]
  @routed_planned_object_reads = hash[:routed_planned_object_reads]
  @routed_range_bytes_fetched = hash[:routed_range_bytes_fetched]
  @routed_range_read_count = hash[:routed_range_read_count]
  @routed_searched_segment_count = hash[:routed_searched_segment_count]
  @routed_selected_block_bytes = hash[:routed_selected_block_bytes]
  @routed_selected_block_count = hash[:routed_selected_block_count]
  @routed_selected_block_ids = (hash[:routed_selected_block_ids] || [])
  @routed_skipped_segment_count = hash[:routed_skipped_segment_count]
  @routing_directory_object_id = hash[:routing_directory_object_id]
  @routing_mode = hash[:routing_mode]
  @segment_count = hash[:segment_count]
  @segment_reduction_fraction = hash[:segment_reduction_fraction]
  @segment_refs = (hash[:segment_refs] || [])
  @snapshot_ref = hash[:snapshot_ref]
  @target_score_coverage = hash[:target_score_coverage]
end

Instance Attribute Details

#backendObject

Returns the value of attribute backend.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def backend
  @backend
end

#baseline_object_bytes_fetchedObject

Returns the value of attribute baseline_object_bytes_fetched.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def baseline_object_bytes_fetched
  @baseline_object_bytes_fetched
end

#baseline_object_read_countObject

Returns the value of attribute baseline_object_read_count.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def baseline_object_read_count
  @baseline_object_read_count
end

#baseline_planned_object_bytesObject

Returns the value of attribute baseline_planned_object_bytes.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def baseline_planned_object_bytes
  @baseline_planned_object_bytes
end

#baseline_planned_object_readsObject

Returns the value of attribute baseline_planned_object_reads.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def baseline_planned_object_reads
  @baseline_planned_object_reads
end

#baseline_range_bytes_fetchedObject

Returns the value of attribute baseline_range_bytes_fetched.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def baseline_range_bytes_fetched
  @baseline_range_bytes_fetched
end

#baseline_range_read_countObject

Returns the value of attribute baseline_range_read_count.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def baseline_range_read_count
  @baseline_range_read_count
end

#baseline_searched_segment_countObject

Returns the value of attribute baseline_searched_segment_count.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def baseline_searched_segment_count
  @baseline_searched_segment_count
end

#baseline_selected_block_bytesObject

Returns the value of attribute baseline_selected_block_bytes.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def baseline_selected_block_bytes
  @baseline_selected_block_bytes
end

#baseline_selected_block_countObject

Returns the value of attribute baseline_selected_block_count.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def baseline_selected_block_count
  @baseline_selected_block_count
end

#benchmark_idObject

Returns the value of attribute benchmark_id.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def benchmark_id
  @benchmark_id
end

#benchmark_objectObject

Returns the value of attribute benchmark_object.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def benchmark_object
  @benchmark_object
end

#byte_reduction_fractionObject

Returns the value of attribute byte_reduction_fraction.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def byte_reduction_fraction
  @byte_reduction_fraction
end

#calibration_objectObject

Returns the value of attribute calibration_object.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def calibration_object
  @calibration_object
end

#calibration_object_idObject

Returns the value of attribute calibration_object_id.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def calibration_object_id
  @calibration_object_id
end

#calibration_profileObject

Returns the value of attribute calibration_profile.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def calibration_profile
  @calibration_profile
end

#collection_idObject

Returns the value of attribute collection_id.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def collection_id
  @collection_id
end

#created_atObject

Returns the value of attribute created_at.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def created_at
  @created_at
end

#eligible_query_countObject

Returns the value of attribute eligible_query_count.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def eligible_query_count
  @eligible_query_count
end

#gateObject

Returns the value of attribute gate.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def gate
  @gate
end

#limitObject

Returns the value of attribute limit.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def limit
  @limit
end

#max_segmentsObject

Returns the value of attribute max_segments.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def max_segments
  @max_segments
end

#mean_hit_overlap_fractionObject

Returns the value of attribute mean_hit_overlap_fraction.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def mean_hit_overlap_fraction
  @mean_hit_overlap_fraction
end

#mean_routed_score_coverageObject

Returns the value of attribute mean_routed_score_coverage.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def mean_routed_score_coverage
  @mean_routed_score_coverage
end

#min_routed_score_coverageObject

Returns the value of attribute min_routed_score_coverage.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def min_routed_score_coverage
  @min_routed_score_coverage
end

#min_routing_score_coverageObject

Returns the value of attribute min_routing_score_coverage.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def min_routing_score_coverage
  @min_routing_score_coverage
end

#nprobeObject

Returns the value of attribute nprobe.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def nprobe
  @nprobe
end

#object_read_reduction_fractionObject

Returns the value of attribute object_read_reduction_fraction.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def object_read_reduction_fraction
  @object_read_reduction_fraction
end

#passedObject

Returns the value of attribute passed.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def passed
  @passed
end

#query_countObject

Returns the value of attribute query_count.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def query_count
  @query_count
end

#recall_atObject

Returns the value of attribute recall_at.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def recall_at
  @recall_at
end

#refObject

Returns the value of attribute ref.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def ref
  @ref
end

#require_adaptive_routingObject

Returns the value of attribute require_adaptive_routing.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def require_adaptive_routing
  @require_adaptive_routing
end

#require_routingObject

Returns the value of attribute require_routing.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def require_routing
  @require_routing
end

#resultsObject

Returns the value of attribute results.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def results
  @results
end

#routed_exact_hit_countObject

Returns the value of attribute routed_exact_hit_count.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def routed_exact_hit_count
  @routed_exact_hit_count
end

#routed_exact_materialized_bytesObject

Returns the value of attribute routed_exact_materialized_bytes.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def routed_exact_materialized_bytes
  @routed_exact_materialized_bytes
end

#routed_exact_object_bytesObject

Returns the value of attribute routed_exact_object_bytes.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def routed_exact_object_bytes
  @routed_exact_object_bytes
end

#routed_exact_object_read_countObject

Returns the value of attribute routed_exact_object_read_count.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def routed_exact_object_read_count
  @routed_exact_object_read_count
end

#routed_exact_verifiedObject

Returns the value of attribute routed_exact_verified.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def routed_exact_verified
  @routed_exact_verified
end

#routed_materialized_bytesObject

Returns the value of attribute routed_materialized_bytes.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def routed_materialized_bytes
  @routed_materialized_bytes
end

#routed_object_bytes_fetchedObject

Returns the value of attribute routed_object_bytes_fetched.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def routed_object_bytes_fetched
  @routed_object_bytes_fetched
end

#routed_object_read_countObject

Returns the value of attribute routed_object_read_count.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def routed_object_read_count
  @routed_object_read_count
end

#routed_planned_object_bytesObject

Returns the value of attribute routed_planned_object_bytes.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def routed_planned_object_bytes
  @routed_planned_object_bytes
end

#routed_planned_object_readsObject

Returns the value of attribute routed_planned_object_reads.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def routed_planned_object_reads
  @routed_planned_object_reads
end

#routed_range_bytes_fetchedObject

Returns the value of attribute routed_range_bytes_fetched.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def routed_range_bytes_fetched
  @routed_range_bytes_fetched
end

#routed_range_read_countObject

Returns the value of attribute routed_range_read_count.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def routed_range_read_count
  @routed_range_read_count
end

#routed_searched_segment_countObject

Returns the value of attribute routed_searched_segment_count.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def routed_searched_segment_count
  @routed_searched_segment_count
end

#routed_selected_block_bytesObject

Returns the value of attribute routed_selected_block_bytes.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def routed_selected_block_bytes
  @routed_selected_block_bytes
end

#routed_selected_block_countObject

Returns the value of attribute routed_selected_block_count.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def routed_selected_block_count
  @routed_selected_block_count
end

#routed_selected_block_idsObject

Returns the value of attribute routed_selected_block_ids.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def routed_selected_block_ids
  @routed_selected_block_ids
end

#routed_skipped_segment_countObject

Returns the value of attribute routed_skipped_segment_count.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def routed_skipped_segment_count
  @routed_skipped_segment_count
end

#routing_directory_object_idObject

Returns the value of attribute routing_directory_object_id.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def routing_directory_object_id
  @routing_directory_object_id
end

#routing_modeObject

Returns the value of attribute routing_mode.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def routing_mode
  @routing_mode
end

#segment_countObject

Returns the value of attribute segment_count.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def segment_count
  @segment_count
end

#segment_reduction_fractionObject

Returns the value of attribute segment_reduction_fraction.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def segment_reduction_fraction
  @segment_reduction_fraction
end

#segment_refsObject

Returns the value of attribute segment_refs.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def segment_refs
  @segment_refs
end

#snapshot_refObject

Returns the value of attribute snapshot_ref.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def snapshot_ref
  @snapshot_ref
end

#target_score_coverageObject

Returns the value of attribute target_score_coverage.



70
71
72
# File 'lib/rafflesia/proteins/fold_collection_benchmark_data.rb', line 70

def target_score_coverage
  @target_score_coverage
end