Class: Google::Apis::AiplatformV1beta1::LearningGenaiRootClassifierOutput
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::LearningGenaiRootClassifierOutput
- 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
Instance Attribute Summary collapse
-
#rule_output ⇒ Google::Apis::AiplatformV1beta1::LearningGenaiRootRuleOutput
If set, this is the output of the first matching rule.
-
#rule_outputs ⇒ Array<Google::Apis::AiplatformV1beta1::LearningGenaiRootRuleOutput>
outputs of all matching rule.
-
#state ⇒ Google::Apis::AiplatformV1beta1::LearningGenaiRootClassifierState
DataProviderOutput and MetricOutput can be saved between calls to the Classifier framework.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LearningGenaiRootClassifierOutput
constructor
A new instance of LearningGenaiRootClassifierOutput.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LearningGenaiRootClassifierOutput
Returns a new instance of LearningGenaiRootClassifierOutput.
32197 32198 32199 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32197 def initialize(**args) update!(**args) end |
Instance Attribute Details
#rule_output ⇒ Google::Apis::AiplatformV1beta1::LearningGenaiRootRuleOutput
If set, this is the output of the first matching rule.
Corresponds to the JSON property ruleOutput
32181 32182 32183 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32181 def rule_output @rule_output end |
#rule_outputs ⇒ Array<Google::Apis::AiplatformV1beta1::LearningGenaiRootRuleOutput>
outputs of all matching rule.
Corresponds to the JSON property ruleOutputs
32186 32187 32188 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32186 def rule_outputs @rule_outputs end |
#state ⇒ Google::Apis::AiplatformV1beta1::LearningGenaiRootClassifierState
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' ...
Corresponds to the JSON property state
32195 32196 32197 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32195 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
32202 32203 32204 32205 32206 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32202 def update!(**args) @rule_output = args[:rule_output] if args.key?(:rule_output) @rule_outputs = args[:rule_outputs] if args.key?(:rule_outputs) @state = args[:state] if args.key?(:state) end |