Class: Rafflesia::SequenceCandidateGates
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SequenceCandidateGates
- Defined in:
- lib/rafflesia/sequences/sequence_candidate_gates.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, require_zero_materialization: :require_zero_materialization }.freeze
Instance Attribute Summary collapse
-
#max_hits ⇒ Object
Returns the value of attribute max_hits.
-
#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.
-
#min_recall_at_k ⇒ Object
Returns the value of attribute min_recall_at_k.
-
#require_zero_materialization ⇒ Object
Returns the value of attribute require_zero_materialization.
Instance Method Summary collapse
-
#initialize(json) ⇒ SequenceCandidateGates
constructor
A new instance of SequenceCandidateGates.
Constructor Details
#initialize(json) ⇒ SequenceCandidateGates
Returns a new instance of SequenceCandidateGates.
23 24 25 26 27 28 29 30 31 |
# File 'lib/rafflesia/sequences/sequence_candidate_gates.rb', line 23 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] @require_zero_materialization = hash[:require_zero_materialization] end |
Instance Attribute Details
#max_hits ⇒ Object
Returns the value of attribute max_hits.
16 17 18 |
# File 'lib/rafflesia/sequences/sequence_candidate_gates.rb', line 16 def max_hits @max_hits end |
#max_object_bytes_per_query ⇒ Object
Returns the value of attribute max_object_bytes_per_query.
16 17 18 |
# File 'lib/rafflesia/sequences/sequence_candidate_gates.rb', line 16 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.
16 17 18 |
# File 'lib/rafflesia/sequences/sequence_candidate_gates.rb', line 16 def max_object_reads_per_query @max_object_reads_per_query end |
#min_recall_at_k ⇒ Object
Returns the value of attribute min_recall_at_k.
16 17 18 |
# File 'lib/rafflesia/sequences/sequence_candidate_gates.rb', line 16 def min_recall_at_k @min_recall_at_k end |
#require_zero_materialization ⇒ Object
Returns the value of attribute require_zero_materialization.
16 17 18 |
# File 'lib/rafflesia/sequences/sequence_candidate_gates.rb', line 16 def require_zero_materialization @require_zero_materialization end |