Class: Rafflesia::FoldSegmentBenchmarkRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  limit: :limit,
  manifest_object_id: :manifest_object_id,
  manifest_path: :manifest_path,
  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,
  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,
  nprobe: :nprobe,
  query_ids: :query_ids,
  recall_at: :recall_at,
  ref: :ref,
  require_exact_verification: :require_exact_verification,
  require_zero_materialization: :require_zero_materialization,
  store_artifact: :store_artifact
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldSegmentBenchmarkRequest

Returns a new instance of FoldSegmentBenchmarkRequest.



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/rafflesia/proteins/fold_segment_benchmark_request.rb', line 47

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @limit = hash[:limit]
  @manifest_object_id = hash[:manifest_object_id]
  @manifest_path = hash[:manifest_path]
  @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]
  @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]
  @nprobe = hash[:nprobe]
  @query_ids = (hash[:query_ids] || [])
  @recall_at = (hash[:recall_at] || [])
  @ref = hash[:ref]
  @require_exact_verification = hash[:require_exact_verification]
  @require_zero_materialization = hash[:require_zero_materialization]
  @store_artifact = hash[:store_artifact]
end

Instance Attribute Details

#limitObject

Returns the value of attribute limit.



28
29
30
# File 'lib/rafflesia/proteins/fold_segment_benchmark_request.rb', line 28

def limit
  @limit
end

#manifest_object_idObject

Returns the value of attribute manifest_object_id.



28
29
30
# File 'lib/rafflesia/proteins/fold_segment_benchmark_request.rb', line 28

def manifest_object_id
  @manifest_object_id
end

#manifest_pathObject

Returns the value of attribute manifest_path.



28
29
30
# File 'lib/rafflesia/proteins/fold_segment_benchmark_request.rb', line 28

def manifest_path
  @manifest_path
end

#max_blocks_per_queryObject

Returns the value of attribute max_blocks_per_query.



28
29
30
# File 'lib/rafflesia/proteins/fold_segment_benchmark_request.rb', line 28

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.



28
29
30
# File 'lib/rafflesia/proteins/fold_segment_benchmark_request.rb', line 28

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.



28
29
30
# File 'lib/rafflesia/proteins/fold_segment_benchmark_request.rb', line 28

def max_object_reads_per_query
  @max_object_reads_per_query
end

#min_byte_reduction_fractionObject

Returns the value of attribute min_byte_reduction_fraction.



28
29
30
# File 'lib/rafflesia/proteins/fold_segment_benchmark_request.rb', line 28

def min_byte_reduction_fraction
  @min_byte_reduction_fraction
end

#min_recall_at_1Object

Returns the value of attribute min_recall_at_1.



28
29
30
# File 'lib/rafflesia/proteins/fold_segment_benchmark_request.rb', line 28

def min_recall_at_1
  @min_recall_at_1
end

#min_recall_at_10Object

Returns the value of attribute min_recall_at_10.



28
29
30
# File 'lib/rafflesia/proteins/fold_segment_benchmark_request.rb', line 28

def min_recall_at_10
  @min_recall_at_10
end

#min_recall_at_100Object

Returns the value of attribute min_recall_at_100.



28
29
30
# File 'lib/rafflesia/proteins/fold_segment_benchmark_request.rb', line 28

def min_recall_at_100
  @min_recall_at_100
end

#nprobeObject

Returns the value of attribute nprobe.



28
29
30
# File 'lib/rafflesia/proteins/fold_segment_benchmark_request.rb', line 28

def nprobe
  @nprobe
end

#query_idsObject

Returns the value of attribute query_ids.



28
29
30
# File 'lib/rafflesia/proteins/fold_segment_benchmark_request.rb', line 28

def query_ids
  @query_ids
end

#recall_atObject

Returns the value of attribute recall_at.



28
29
30
# File 'lib/rafflesia/proteins/fold_segment_benchmark_request.rb', line 28

def recall_at
  @recall_at
end

#refObject

Returns the value of attribute ref.



28
29
30
# File 'lib/rafflesia/proteins/fold_segment_benchmark_request.rb', line 28

def ref
  @ref
end

#require_exact_verificationObject

Returns the value of attribute require_exact_verification.



28
29
30
# File 'lib/rafflesia/proteins/fold_segment_benchmark_request.rb', line 28

def require_exact_verification
  @require_exact_verification
end

#require_zero_materializationObject

Returns the value of attribute require_zero_materialization.



28
29
30
# File 'lib/rafflesia/proteins/fold_segment_benchmark_request.rb', line 28

def require_zero_materialization
  @require_zero_materialization
end

#store_artifactObject

Returns the value of attribute store_artifact.



28
29
30
# File 'lib/rafflesia/proteins/fold_segment_benchmark_request.rb', line 28

def store_artifact
  @store_artifact
end