119 lines
3.7 KiB
PHP
119 lines
3.7 KiB
PHP
|
|
<?php
|
||
|
|
/*
|
||
|
|
* Copyright 2014 Google Inc.
|
||
|
|
*
|
||
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||
|
|
* use this file except in compliance with the License. You may obtain a copy of
|
||
|
|
* the License at
|
||
|
|
*
|
||
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
*
|
||
|
|
* Unless required by applicable law or agreed to in writing, software
|
||
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||
|
|
* License for the specific language governing permissions and limitations under
|
||
|
|
* the License.
|
||
|
|
*/
|
||
|
|
|
||
|
|
namespace Google\Service\Aiplatform;
|
||
|
|
|
||
|
|
class GoogleCloudAiplatformV1EvaluationConfig extends \Google\Collection
|
||
|
|
{
|
||
|
|
protected $collection_key = 'metrics';
|
||
|
|
protected $autoraterConfigType = GoogleCloudAiplatformV1AutoraterConfig::class;
|
||
|
|
protected $autoraterConfigDataType = '';
|
||
|
|
protected $datasetCustomMetricsType = GoogleCloudAiplatformV1DatasetCustomMetric::class;
|
||
|
|
protected $datasetCustomMetricsDataType = 'array';
|
||
|
|
protected $inferenceGenerationConfigType = GoogleCloudAiplatformV1GenerationConfig::class;
|
||
|
|
protected $inferenceGenerationConfigDataType = '';
|
||
|
|
protected $metricsType = GoogleCloudAiplatformV1Metric::class;
|
||
|
|
protected $metricsDataType = 'array';
|
||
|
|
protected $outputConfigType = GoogleCloudAiplatformV1OutputConfig::class;
|
||
|
|
protected $outputConfigDataType = '';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Optional. Autorater config for evaluation.
|
||
|
|
*
|
||
|
|
* @param GoogleCloudAiplatformV1AutoraterConfig $autoraterConfig
|
||
|
|
*/
|
||
|
|
public function setAutoraterConfig(GoogleCloudAiplatformV1AutoraterConfig $autoraterConfig)
|
||
|
|
{
|
||
|
|
$this->autoraterConfig = $autoraterConfig;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* @return GoogleCloudAiplatformV1AutoraterConfig
|
||
|
|
*/
|
||
|
|
public function getAutoraterConfig()
|
||
|
|
{
|
||
|
|
return $this->autoraterConfig;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* Optional. Specifications for custom dataset-level aggregations.
|
||
|
|
*
|
||
|
|
* @param GoogleCloudAiplatformV1DatasetCustomMetric[] $datasetCustomMetrics
|
||
|
|
*/
|
||
|
|
public function setDatasetCustomMetrics($datasetCustomMetrics)
|
||
|
|
{
|
||
|
|
$this->datasetCustomMetrics = $datasetCustomMetrics;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* @return GoogleCloudAiplatformV1DatasetCustomMetric[]
|
||
|
|
*/
|
||
|
|
public function getDatasetCustomMetrics()
|
||
|
|
{
|
||
|
|
return $this->datasetCustomMetrics;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* Optional. Configuration options for inference generation and outputs. If
|
||
|
|
* not set, default generation parameters are used.
|
||
|
|
*
|
||
|
|
* @param GoogleCloudAiplatformV1GenerationConfig $inferenceGenerationConfig
|
||
|
|
*/
|
||
|
|
public function setInferenceGenerationConfig(GoogleCloudAiplatformV1GenerationConfig $inferenceGenerationConfig)
|
||
|
|
{
|
||
|
|
$this->inferenceGenerationConfig = $inferenceGenerationConfig;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* @return GoogleCloudAiplatformV1GenerationConfig
|
||
|
|
*/
|
||
|
|
public function getInferenceGenerationConfig()
|
||
|
|
{
|
||
|
|
return $this->inferenceGenerationConfig;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* Required. The metrics used for evaluation.
|
||
|
|
*
|
||
|
|
* @param GoogleCloudAiplatformV1Metric[] $metrics
|
||
|
|
*/
|
||
|
|
public function setMetrics($metrics)
|
||
|
|
{
|
||
|
|
$this->metrics = $metrics;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* @return GoogleCloudAiplatformV1Metric[]
|
||
|
|
*/
|
||
|
|
public function getMetrics()
|
||
|
|
{
|
||
|
|
return $this->metrics;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* Required. Config for evaluation output.
|
||
|
|
*
|
||
|
|
* @param GoogleCloudAiplatformV1OutputConfig $outputConfig
|
||
|
|
*/
|
||
|
|
public function setOutputConfig(GoogleCloudAiplatformV1OutputConfig $outputConfig)
|
||
|
|
{
|
||
|
|
$this->outputConfig = $outputConfig;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* @return GoogleCloudAiplatformV1OutputConfig
|
||
|
|
*/
|
||
|
|
public function getOutputConfig()
|
||
|
|
{
|
||
|
|
return $this->outputConfig;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Adding a class alias for backwards compatibility with the previous class name.
|
||
|
|
class_alias(GoogleCloudAiplatformV1EvaluationConfig::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1EvaluationConfig');
|