class Datarobot::AiApi::Evaluation

Attributes

label[R]
score[R]
summary[R]

Public Class Methods

new(options={}) click to toggle source

Takes a response body from the API. Will set all prediction attributes from the response body

@param [Hash] options A parsed response body

# File lib/datarobot/ai_api/evaluation.rb, line 10
def initialize(options={})
  # one-liner replacement for `stringify_keys`
  options = options.collect{|k,v| [k.to_s, v]}.to_h

  @summary = options.dig("summary")
  @score = options.dig("score")
  @label = options.dig("label")
end