Class: NexosisApi::DatasetModel
- Inherits:
-
Object
- Object
- NexosisApi::DatasetModel
- Defined in:
- lib/nexosis_api/dataset_model.rb
Overview
Class to parse the model results calculated for a dataset
Instance Attribute Summary collapse
-
#championContest ⇒ NexosisApi::AlgorithmSelection
The details of the winning algorithm.
-
#datasetName ⇒ String
The name of the dataset used in the evaluation.
-
#targetColumn ⇒ String
The column targeted for prediction.
Instance Method Summary collapse
-
#initialize(data_hash) ⇒ DatasetModel
constructor
A new instance of DatasetModel.
Constructor Details
permalink #initialize(data_hash) ⇒ DatasetModel
Returns a new instance of DatasetModel.
4 5 6 7 8 9 10 11 12 |
# 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 |
Instance Attribute Details
permalink #championContest ⇒ NexosisApi::AlgorithmSelection
The details of the winning algorithm
24 25 26 |
# File 'lib/nexosis_api/dataset_model.rb', line 24 def championContest @championContest end |
permalink #datasetName ⇒ String
The name of the dataset used in the evaluation
16 17 18 |
# File 'lib/nexosis_api/dataset_model.rb', line 16 def datasetName @datasetName end |
permalink #targetColumn ⇒ String
The column targeted for prediction
20 21 22 |
# File 'lib/nexosis_api/dataset_model.rb', line 20 def targetColumn @targetColumn end |