Class: Rafflesia::FoldIndexBenchmarkRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  concurrency: :concurrency,
  limit: :limit,
  manifest_object_id: :manifest_object_id,
  manifest_path: :manifest_path,
  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,
  store_artifact: :store_artifact,
  target_dir: :target_dir,
  verify_index: :verify_index
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldIndexBenchmarkRequest

Returns a new instance of FoldIndexBenchmarkRequest.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/rafflesia/proteins/fold_index_benchmark_request.rb', line 43

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @concurrency = hash[:concurrency]
  @limit = hash[:limit]
  @manifest_object_id = hash[:manifest_object_id]
  @manifest_path = hash[:manifest_path]
  @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]
  @store_artifact = hash[:store_artifact]
  @target_dir = hash[:target_dir]
  @verify_index = hash[:verify_index]
end

Instance Attribute Details

#concurrencyObject

Returns the value of attribute concurrency.



26
27
28
# File 'lib/rafflesia/proteins/fold_index_benchmark_request.rb', line 26

def concurrency
  @concurrency
end

#limitObject

Returns the value of attribute limit.



26
27
28
# File 'lib/rafflesia/proteins/fold_index_benchmark_request.rb', line 26

def limit
  @limit
end

#manifest_object_idObject

Returns the value of attribute manifest_object_id.



26
27
28
# File 'lib/rafflesia/proteins/fold_index_benchmark_request.rb', line 26

def manifest_object_id
  @manifest_object_id
end

#manifest_pathObject

Returns the value of attribute manifest_path.



26
27
28
# File 'lib/rafflesia/proteins/fold_index_benchmark_request.rb', line 26

def manifest_path
  @manifest_path
end

#min_byte_reduction_fractionObject

Returns the value of attribute min_byte_reduction_fraction.



26
27
28
# File 'lib/rafflesia/proteins/fold_index_benchmark_request.rb', line 26

def min_byte_reduction_fraction
  @min_byte_reduction_fraction
end

#min_recall_at_1Object

Returns the value of attribute min_recall_at_1.



26
27
28
# File 'lib/rafflesia/proteins/fold_index_benchmark_request.rb', line 26

def min_recall_at_1
  @min_recall_at_1
end

#min_recall_at_10Object

Returns the value of attribute min_recall_at_10.



26
27
28
# File 'lib/rafflesia/proteins/fold_index_benchmark_request.rb', line 26

def min_recall_at_10
  @min_recall_at_10
end

#min_recall_at_100Object

Returns the value of attribute min_recall_at_100.



26
27
28
# File 'lib/rafflesia/proteins/fold_index_benchmark_request.rb', line 26

def min_recall_at_100
  @min_recall_at_100
end

#nprobeObject

Returns the value of attribute nprobe.



26
27
28
# File 'lib/rafflesia/proteins/fold_index_benchmark_request.rb', line 26

def nprobe
  @nprobe
end

#query_idsObject

Returns the value of attribute query_ids.



26
27
28
# File 'lib/rafflesia/proteins/fold_index_benchmark_request.rb', line 26

def query_ids
  @query_ids
end

#recall_atObject

Returns the value of attribute recall_at.



26
27
28
# File 'lib/rafflesia/proteins/fold_index_benchmark_request.rb', line 26

def recall_at
  @recall_at
end

#refObject

Returns the value of attribute ref.



26
27
28
# File 'lib/rafflesia/proteins/fold_index_benchmark_request.rb', line 26

def ref
  @ref
end

#store_artifactObject

Returns the value of attribute store_artifact.



26
27
28
# File 'lib/rafflesia/proteins/fold_index_benchmark_request.rb', line 26

def store_artifact
  @store_artifact
end

#target_dirObject

Returns the value of attribute target_dir.



26
27
28
# File 'lib/rafflesia/proteins/fold_index_benchmark_request.rb', line 26

def target_dir
  @target_dir
end

#verify_indexObject

Returns the value of attribute verify_index.



26
27
28
# File 'lib/rafflesia/proteins/fold_index_benchmark_request.rb', line 26

def verify_index
  @verify_index
end