Class: Google::Apis::PredictionV1_6::Output

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: OutputMulti

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) ⇒ Output

Returns a new instance of Output.



685
686
687
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 685

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

Instance Attribute Details

#idString

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

Returns:

  • (String)


657
658
659
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 657

def id
  @id
end

#kindString

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

Returns:

  • (String)


662
663
664
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 662

def kind
  @kind
end

#output_labelString

The most likely class label (Categorical models only). Corresponds to the JSON property outputLabel

Returns:

  • (String)


667
668
669
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 667

def output_label
  @output_label
end

#output_multiArray<Google::Apis::PredictionV1_6::Output::OutputMulti>

A list of class labels with their estimated probabilities (Categorical models only). Corresponds to the JSON property outputMulti



673
674
675
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 673

def output_multi
  @output_multi
end

#output_valueString

The estimated regression value (Regression models only). Corresponds to the JSON property outputValue

Returns:

  • (String)


678
679
680
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 678

def output_value
  @output_value
end

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

Returns:

  • (String)


683
684
685
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 683

def self_link
  @self_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



690
691
692
693
694
695
696
697
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 690

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @output_label = args[:output_label] if args.key?(:output_label)
  @output_multi = args[:output_multi] if args.key?(:output_multi)
  @output_value = args[:output_value] if args.key?(:output_value)
  @self_link = args[:self_link] if args.key?(:self_link)
end