Class AsyncEvals (1.130.0)

  AsyncEvals 
 ( 
 api_client_ 
 : 
 google 
 . 
 genai 
 . 
 _api_client 
 . 
 BaseApiClient 
 ) 
 

API documentation for AsyncEvals class.

Methods

batch_evaluate

  batch_evaluate 
 ( 
 * 
 , 
 dataset 
 : 
 typing 
 . 
 Union 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 EvaluationDataset 
 , 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 EvaluationDatasetDict 
 , 
 ], 
 metrics 
 : 
 list 
 [ 
 typing 
 . 
 Union 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 Metric 
 , 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 MetricDict 
 ] 
 ], 
 dest 
 : 
 str 
 , 
 config 
 : 
 typing 
 . 
 Optional 
 [ 
 typing 
 . 
 Union 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 EvaluateDatasetConfig 
 , 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 EvaluateDatasetConfigDict 
 , 
 ] 
 ] 
 = 
 None 
 ) 
 - 
> vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 EvaluateDatasetOperation 
 

Evaluates a dataset based on a set of given metrics.

create_evaluation_item

  create_evaluation_item 
 ( 
 * 
 , 
 evaluation_item_type 
 : 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 EvaluationItemType 
 , 
 gcs_uri 
 : 
 str 
 , 
 display_name 
 : 
 typing 
 . 
 Optional 
 [ 
 str 
 ] 
 = 
 None 
 , 
 config 
 : 
 typing 
 . 
 Optional 
 [ 
 typing 
 . 
 Union 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 CreateEvaluationItemConfig 
 , 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 CreateEvaluationItemConfigDict 
 , 
 ] 
 ] 
 = 
 None 
 ) 
 - 
> vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 EvaluationItem 
 

Creates an EvaluationItem.

create_evaluation_run

  create_evaluation_run 
 ( 
 * 
 , 
 dataset 
 : 
 typing 
 . 
 Union 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 EvaluationRunDataSource 
 , 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 EvaluationDataset 
 , 
 ], 
 dest 
 : 
 str 
 , 
 metrics 
 : 
 list 
 [ 
 typing 
 . 
 Union 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 EvaluationRunMetric 
 , 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 EvaluationRunMetricDict 
 , 
 ] 
 ], 
 name 
 : 
 typing 
 . 
 Optional 
 [ 
 str 
 ] 
 = 
 None 
 , 
 display_name 
 : 
 typing 
 . 
 Optional 
 [ 
 str 
 ] 
 = 
 None 
 , 
 agent_info 
 : 
 typing 
 . 
 Optional 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 evals 
 . 
 AgentInfo 
 ] 
 = 
 None 
 , 
 labels 
 : 
 typing 
 . 
 Optional 
 [ 
 dict 
 [ 
 str 
 , 
 str 
 ]] 
 = 
 None 
 , 
 config 
 : 
 typing 
 . 
 Optional 
 [ 
 typing 
 . 
 Union 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 CreateEvaluationRunConfig 
 , 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 CreateEvaluationRunConfigDict 
 , 
 ] 
 ] 
 = 
 None 
 ) 
 - 
> vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 EvaluationRun 
 

Creates an EvaluationRun.

create_evaluation_set

  create_evaluation_set 
 ( 
 * 
 , 
 evaluation_items 
 : 
 list 
 [ 
 str 
 ], 
 display_name 
 : 
 typing 
 . 
 Optional 
 [ 
 str 
 ] 
 = 
 None 
 , 
 config 
 : 
 typing 
 . 
 Optional 
 [ 
 typing 
 . 
 Union 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 CreateEvaluationSetConfig 
 , 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 CreateEvaluationSetConfigDict 
 , 
 ] 
 ] 
 = 
 None 
 ) 
 - 
> vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 EvaluationSet 
 

Creates an EvaluationSet.

evaluate_instances

  evaluate_instances 
 ( 
 * 
 , 
 metric_config 
 : 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 _EvaluateInstancesRequestParameters 
 ) 
 - 
> vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 EvaluateInstancesResponse 
 

Evaluates an instance of a model.

get_evaluation_item

  get_evaluation_item 
 ( 
 * 
 , 
 name 
 : 
 str 
 , 
 config 
 : 
 typing 
 . 
 Optional 
 [ 
 typing 
 . 
 Union 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 GetEvaluationItemConfig 
 , 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 GetEvaluationItemConfigDict 
 , 
 ] 
 ] 
 = 
 None 
 ) 
 - 
> vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 EvaluationItem 
 

Retrieves an EvaluationItem from the resource name.

get_evaluation_run

  get_evaluation_run 
 ( 
 * 
 , 
 name 
 : 
 str 
 , 
 include_evaluation_items 
 : 
 bool 
 = 
 False 
 , 
 config 
 : 
 typing 
 . 
 Optional 
 [ 
 typing 
 . 
 Union 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 GetEvaluationRunConfig 
 , 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 GetEvaluationRunConfigDict 
 , 
 ] 
 ] 
 = 
 None 
 ) 
 - 
> vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 EvaluationRun 
 

Retrieves the EvaluationRun from the resource name.

Exceptions
Type
Description
ValueError
If the name is empty or invalid.

get_evaluation_set

  get_evaluation_set 
 ( 
 * 
 , 
 name 
 : 
 str 
 , 
 config 
 : 
 typing 
 . 
 Optional 
 [ 
 typing 
 . 
 Union 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 GetEvaluationSetConfig 
 , 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 GetEvaluationSetConfigDict 
 , 
 ] 
 ] 
 = 
 None 
 ) 
 - 
> vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 EvaluationSet 
 

Retrieves an EvaluationSet from the resource name.

Design a Mobile Site
View Site in Mobile | Classic
Share by: