Class: Google::Apis::AiplatformV1::LearningGenaiRootClassifierState

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

DataProviderOutput and MetricOutput can be saved between calls to the Classifier framework. For instance, you can run the query classifier, get outputs from those metrics, then use them in a result classifier as well. Example rule based on this idea: and_rules rule metric_name: ' query_safesearch_v2' ... rule metric_name: 'response_safesearch_v2' ...

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LearningGenaiRootClassifierState

Returns a new instance of LearningGenaiRootClassifierState.



29142
29143
29144
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29142

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

Instance Attribute Details

#data_provider_outputArray<Google::Apis::AiplatformV1::LearningGenaiRootDataProviderOutput>

Corresponds to the JSON property dataProviderOutput



29135
29136
29137
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29135

def data_provider_output
  @data_provider_output
end

#metric_outputArray<Google::Apis::AiplatformV1::LearningGenaiRootMetricOutput>

Corresponds to the JSON property metricOutput



29140
29141
29142
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29140

def metric_output
  @metric_output
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



29147
29148
29149
29150
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29147

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