Class: Rafflesia::FoldCollectionBenchmarkRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  exact_limit: :exact_limit,
  exact_verify: :exact_verify,
  limit: :limit,
  max_blocks_per_query: :max_blocks_per_query,
  max_object_bytes_per_query: :max_object_bytes_per_query,
  max_object_reads_per_query: :max_object_reads_per_query,
  max_segments: :max_segments,
  max_segments_per_query: :max_segments_per_query,
  min_byte_reduction_fraction: :min_byte_reduction_fraction,
  min_recall_at_1: :min_recall_at_1,
  min_recall_at_10: :min_recall_at_10,
  min_recall_at_100: :min_recall_at_100,
  min_routing_score_coverage: :min_routing_score_coverage,
  min_segment_reduction_fraction: :min_segment_reduction_fraction,
  nprobe: :nprobe,
  query_ids: :query_ids,
  recall_at: :recall_at,
  ref: :ref,
  require_adaptive_routing: :require_adaptive_routing,
  require_exact_verification: :require_exact_verification,
  require_routing: :require_routing,
  require_zero_materialization: :require_zero_materialization,
  routing_mode: :routing_mode,
  segment_refs: :segment_refs,
  store_artifact: :store_artifact,
  store_calibration: :store_calibration,
  target_score_coverage: :target_score_coverage
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldCollectionBenchmarkRequest

Returns a new instance of FoldCollectionBenchmarkRequest.



67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 67

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @exact_limit = hash[:exact_limit]
  @exact_verify = hash[:exact_verify]
  @limit = hash[:limit]
  @max_blocks_per_query = hash[:max_blocks_per_query]
  @max_object_bytes_per_query = hash[:max_object_bytes_per_query]
  @max_object_reads_per_query = hash[:max_object_reads_per_query]
  @max_segments = hash[:max_segments]
  @max_segments_per_query = hash[:max_segments_per_query]
  @min_byte_reduction_fraction = hash[:min_byte_reduction_fraction]
  @min_recall_at_1 = hash[:min_recall_at_1]
  @min_recall_at_10 = hash[:min_recall_at_10]
  @min_recall_at_100 = hash[:min_recall_at_100]
  @min_routing_score_coverage = hash[:min_routing_score_coverage]
  @min_segment_reduction_fraction = hash[:min_segment_reduction_fraction]
  @nprobe = hash[:nprobe]
  @query_ids = (hash[:query_ids] || [])
  @recall_at = (hash[:recall_at] || [])
  @ref = hash[:ref]
  @require_adaptive_routing = hash[:require_adaptive_routing]
  @require_exact_verification = hash[:require_exact_verification]
  @require_routing = hash[:require_routing]
  @require_zero_materialization = hash[:require_zero_materialization]
  @routing_mode = hash[:routing_mode]
  @segment_refs = (hash[:segment_refs] || [])
  @store_artifact = hash[:store_artifact]
  @store_calibration = hash[:store_calibration]
  @target_score_coverage = hash[:target_score_coverage]
end

Instance Attribute Details

#exact_limitObject

Returns the value of attribute exact_limit.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def exact_limit
  @exact_limit
end

#exact_verifyObject

Returns the value of attribute exact_verify.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def exact_verify
  @exact_verify
end

#limitObject

Returns the value of attribute limit.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def limit
  @limit
end

#max_blocks_per_queryObject

Returns the value of attribute max_blocks_per_query.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def max_blocks_per_query
  @max_blocks_per_query
end

#max_object_bytes_per_queryObject

Returns the value of attribute max_object_bytes_per_query.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

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.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def max_object_reads_per_query
  @max_object_reads_per_query
end

#max_segmentsObject

Returns the value of attribute max_segments.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def max_segments
  @max_segments
end

#max_segments_per_queryObject

Returns the value of attribute max_segments_per_query.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def max_segments_per_query
  @max_segments_per_query
end

#min_byte_reduction_fractionObject

Returns the value of attribute min_byte_reduction_fraction.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def min_byte_reduction_fraction
  @min_byte_reduction_fraction
end

#min_recall_at_1Object

Returns the value of attribute min_recall_at_1.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def min_recall_at_1
  @min_recall_at_1
end

#min_recall_at_10Object

Returns the value of attribute min_recall_at_10.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def min_recall_at_10
  @min_recall_at_10
end

#min_recall_at_100Object

Returns the value of attribute min_recall_at_100.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def min_recall_at_100
  @min_recall_at_100
end

#min_routing_score_coverageObject

Returns the value of attribute min_routing_score_coverage.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def min_routing_score_coverage
  @min_routing_score_coverage
end

#min_segment_reduction_fractionObject

Returns the value of attribute min_segment_reduction_fraction.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def min_segment_reduction_fraction
  @min_segment_reduction_fraction
end

#nprobeObject

Returns the value of attribute nprobe.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def nprobe
  @nprobe
end

#query_idsObject

Returns the value of attribute query_ids.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def query_ids
  @query_ids
end

#recall_atObject

Returns the value of attribute recall_at.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def recall_at
  @recall_at
end

#refObject

Returns the value of attribute ref.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def ref
  @ref
end

#require_adaptive_routingObject

Returns the value of attribute require_adaptive_routing.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def require_adaptive_routing
  @require_adaptive_routing
end

#require_exact_verificationObject

Returns the value of attribute require_exact_verification.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def require_exact_verification
  @require_exact_verification
end

#require_routingObject

Returns the value of attribute require_routing.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def require_routing
  @require_routing
end

#require_zero_materializationObject

Returns the value of attribute require_zero_materialization.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def require_zero_materialization
  @require_zero_materialization
end

#routing_modeObject

Returns the value of attribute routing_mode.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def routing_mode
  @routing_mode
end

#segment_refsObject

Returns the value of attribute segment_refs.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def segment_refs
  @segment_refs
end

#store_artifactObject

Returns the value of attribute store_artifact.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def store_artifact
  @store_artifact
end

#store_calibrationObject

Returns the value of attribute store_calibration.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def store_calibration
  @store_calibration
end

#target_score_coverageObject

Returns the value of attribute target_score_coverage.



38
39
40
# File 'lib/rafflesia/proteins/fold_collection_benchmark_request.rb', line 38

def target_score_coverage
  @target_score_coverage
end