Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Neighbor

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

Overview

Neighbors for example-based explanations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1Neighbor

Returns a new instance of GoogleCloudAiplatformV1beta1Neighbor.



40190
40191
40192
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 40190

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

Instance Attribute Details

#neighbor_distanceFloat

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

Returns:

  • (Float)


40183
40184
40185
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 40183

def neighbor_distance
  @neighbor_distance
end

#neighbor_idString

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

Returns:

  • (String)


40188
40189
40190
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 40188

def neighbor_id
  @neighbor_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



40195
40196
40197
40198
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 40195

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