Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Neighbor

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

Overview

Neighbors for example-based explanations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1Neighbor

Returns a new instance of GoogleCloudAiplatformV1Neighbor.



15142
15143
15144
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15142

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

Instance Attribute Details

#neighbor_distanceFloat

Output only. The neighbor distance. Corresponds to the JSON property neighborDistance

Returns:

  • (Float)


15135
15136
15137
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15135

def neighbor_distance
  @neighbor_distance
end

#neighbor_idString

Output only. The neighbor id. Corresponds to the JSON property neighborId

Returns:

  • (String)


15140
15141
15142
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15140

def neighbor_id
  @neighbor_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15147
15148
15149
15150
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15147

def update!(**args)
  @neighbor_distance = args[:neighbor_distance] if args.key?(:neighbor_distance)
  @neighbor_id = args[:neighbor_id] if args.key?(:neighbor_id)
end