Class: Google::Apis::PredictionV1_6::Analyze

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/prediction_v1_6/classes.rb,
generated/google/apis/prediction_v1_6/representations.rb,
generated/google/apis/prediction_v1_6/representations.rb

Defined Under Namespace

Classes: DataDescription, ModelDescription

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Analyze

Returns a new instance of Analyze.



59
60
61
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 59

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#data_descriptionGoogle::Apis::PredictionV1_6::Analyze::DataDescription

Description of the data the model was trained on. Corresponds to the JSON property dataDescription



32
33
34
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 32

def data_description
  @data_description
end

#errorsArray<Hash<String,String>>

List of errors with the data. Corresponds to the JSON property errors

Returns:

  • (Array<Hash<String,String>>)


37
38
39
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 37

def errors
  @errors
end

#idString

The unique name for the predictive model. Corresponds to the JSON property id

Returns:

  • (String)


42
43
44
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 42

def id
  @id
end

#kindString

What kind of resource this is. Corresponds to the JSON property kind

Returns:

  • (String)


47
48
49
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 47

def kind
  @kind
end

#model_descriptionGoogle::Apis::PredictionV1_6::Analyze::ModelDescription

Description of the model. Corresponds to the JSON property modelDescription



52
53
54
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 52

def model_description
  @model_description
end

A URL to re-request this resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


57
58
59
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 57

def self_link
  @self_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



64
65
66
67
68
69
70
71
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 64

def update!(**args)
  @data_description = args[:data_description] if args.key?(:data_description)
  @errors = args[:errors] if args.key?(:errors)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @model_description = args[:model_description] if args.key?(:model_description)
  @self_link = args[:self_link] if args.key?(:self_link)
end