Class: Rafflesia::CorpuReleasePlannerDeltaValues

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/datasets/corpu_release_planner_delta_values.rb

Constant Summary collapse

HASH_ATTRS =
{
  bytes_read_total: :bytes_read_total,
  candidates_examined_total: :candidates_examined_total,
  hit_rate_at_k: :hit_rate_at_k,
  mean_recall_at_k: :mean_recall_at_k,
  object_reads_total: :object_reads_total
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ CorpuReleasePlannerDeltaValues

Returns a new instance of CorpuReleasePlannerDeltaValues.



23
24
25
26
27
28
29
30
31
# File 'lib/rafflesia/datasets/corpu_release_planner_delta_values.rb', line 23

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @bytes_read_total = hash[:bytes_read_total]
  @candidates_examined_total = hash[:candidates_examined_total]
  @hit_rate_at_k = hash[:hit_rate_at_k]
  @mean_recall_at_k = hash[:mean_recall_at_k]
  @object_reads_total = hash[:object_reads_total]
end

Instance Attribute Details

#bytes_read_totalObject

Returns the value of attribute bytes_read_total.



16
17
18
# File 'lib/rafflesia/datasets/corpu_release_planner_delta_values.rb', line 16

def bytes_read_total
  @bytes_read_total
end

#candidates_examined_totalObject

Returns the value of attribute candidates_examined_total.



16
17
18
# File 'lib/rafflesia/datasets/corpu_release_planner_delta_values.rb', line 16

def candidates_examined_total
  @candidates_examined_total
end

#hit_rate_at_kObject

Returns the value of attribute hit_rate_at_k.



16
17
18
# File 'lib/rafflesia/datasets/corpu_release_planner_delta_values.rb', line 16

def hit_rate_at_k
  @hit_rate_at_k
end

#mean_recall_at_kObject

Returns the value of attribute mean_recall_at_k.



16
17
18
# File 'lib/rafflesia/datasets/corpu_release_planner_delta_values.rb', line 16

def mean_recall_at_k
  @mean_recall_at_k
end

#object_reads_totalObject

Returns the value of attribute object_reads_total.



16
17
18
# File 'lib/rafflesia/datasets/corpu_release_planner_delta_values.rb', line 16

def object_reads_total
  @object_reads_total
end