Class: Rafflesia::SequenceCandidateBenchmarkRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  max_hits: :max_hits,
  max_object_bytes_per_query: :max_object_bytes_per_query,
  max_object_reads_per_query: :max_object_reads_per_query,
  min_recall_at_k: :min_recall_at_k,
  min_top_hit_identity: :min_top_hit_identity,
  namespace: :namespace,
  queries_object_id: :queries_object_id,
  queries_path: :queries_path,
  query_mode: :query_mode,
  require_top_hit_id_matches_query_id: :require_top_hit_id_matches_query_id,
  require_zero_materialization: :require_zero_materialization,
  store_artifact: :store_artifact,
  timeout_ms: :timeout_ms
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SequenceCandidateBenchmarkRequest

Returns a new instance of SequenceCandidateBenchmarkRequest.



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_request.rb', line 39

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @max_hits = hash[:max_hits]
  @max_object_bytes_per_query = hash[:max_object_bytes_per_query]
  @max_object_reads_per_query = hash[:max_object_reads_per_query]
  @min_recall_at_k = hash[:min_recall_at_k]
  @min_top_hit_identity = hash[:min_top_hit_identity]
  @namespace = hash[:namespace]
  @queries_object_id = hash[:queries_object_id]
  @queries_path = hash[:queries_path]
  @query_mode = hash[:query_mode]
  @require_top_hit_id_matches_query_id = hash[:require_top_hit_id_matches_query_id]
  @require_zero_materialization = hash[:require_zero_materialization]
  @store_artifact = hash[:store_artifact]
  @timeout_ms = hash[:timeout_ms]
end

Instance Attribute Details

#max_hitsObject

Returns the value of attribute max_hits.



24
25
26
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_request.rb', line 24

def max_hits
  @max_hits
end

#max_object_bytes_per_queryObject

Returns the value of attribute max_object_bytes_per_query.



24
25
26
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_request.rb', line 24

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.



24
25
26
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_request.rb', line 24

def max_object_reads_per_query
  @max_object_reads_per_query
end

#min_recall_at_kObject

Returns the value of attribute min_recall_at_k.



24
25
26
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_request.rb', line 24

def min_recall_at_k
  @min_recall_at_k
end

#min_top_hit_identityObject

Returns the value of attribute min_top_hit_identity.



24
25
26
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_request.rb', line 24

def min_top_hit_identity
  @min_top_hit_identity
end

#namespaceObject

Returns the value of attribute namespace.



24
25
26
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_request.rb', line 24

def namespace
  @namespace
end

#queries_object_idObject

Returns the value of attribute queries_object_id.



24
25
26
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_request.rb', line 24

def queries_object_id
  @queries_object_id
end

#queries_pathObject

Returns the value of attribute queries_path.



24
25
26
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_request.rb', line 24

def queries_path
  @queries_path
end

#query_modeObject

Returns the value of attribute query_mode.



24
25
26
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_request.rb', line 24

def query_mode
  @query_mode
end

#require_top_hit_id_matches_query_idObject

Returns the value of attribute require_top_hit_id_matches_query_id.



24
25
26
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_request.rb', line 24

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.



24
25
26
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_request.rb', line 24

def require_zero_materialization
  @require_zero_materialization
end

#store_artifactObject

Returns the value of attribute store_artifact.



24
25
26
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_request.rb', line 24

def store_artifact
  @store_artifact
end

#timeout_msObject

Returns the value of attribute timeout_ms.



24
25
26
# File 'lib/rafflesia/sequences/sequence_candidate_benchmark_request.rb', line 24

def timeout_ms
  @timeout_ms
end