class NexosisApi::DatasetModel

Class to parse the model results calculated for a dataset

Attributes

championContest[RW]

The details of the winning algorithm @return [NexosisApi::AlgorithmSelection]

datasetName[RW]

The name of the dataset used in the evaluation @return [String]

targetColumn[RW]

The column targeted for prediction @return [String]

Public Class Methods

new(data_hash) click to toggle source
# File lib/nexosis_api/dataset_model.rb, line 4
def initialize(data_hash)
  data_hash.each do |k, v|
    if k == 'championContest'
      instance_variable_set("@#{k}", NexosisApi::AlgorithmSelection.new(v))
    else
      instance_variable_set("@#{k}", v) unless v.nil?
    end
  end
end