1.0.0-beta87 (latest) 1.0.0-beta86

    public sealed class ModelEvaluation.Types.BiasConfig : IMessage<ModelEvaluation.Types.BiasConfig>, IEquatable<ModelEvaluation.Types.BiasConfig>, IDeepCloneable<ModelEvaluation.Types.BiasConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Vertex AI v1beta1 API class ModelEvaluation.Types.BiasConfig.

Configuration for bias detection.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ModelEvaluation.Types.BiasConfig

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ModelEvaluation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ModelEvaluation)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ModelEvaluation.Types)[BiasConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ModelEvaluation.Types.BiasConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ModelEvaluation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ModelEvaluation)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ModelEvaluation.Types)[BiasConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ModelEvaluation.Types.BiasConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ModelEvaluation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ModelEvaluation)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ModelEvaluation.Types)[BiasConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ModelEvaluation.Types.BiasConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.AIPlatform.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)

## Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

## Constructors

### BiasConfig()

    public BiasConfig()

### BiasConfig(BiasConfig)

    public BiasConfig(ModelEvaluation.Types.BiasConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ModelEvaluationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ModelEvaluation.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ModelEvaluation.Types.BiasConfig` |

## Properties

### BiasSlices

    public ModelEvaluationSlice.Types.Slice.Types.SliceSpec BiasSlices { get; set; }

Specification for how the data should be sliced for bias. It contains a
list of slices, with limitation of two slices. The first slice of data
will be the slice_a. The second slice in the list (slice_b) will be
compared against the first slice. If only a single slice is provided,
then slice_a will be compared against "not slice_a".
Below are examples with feature "education" with value "low", "medium",
"high" in the dataset:

Example 1:

    bias_slices = [{'education': 'low'}]

A single slice provided. In this case, slice_a is the collection of data
with 'education' equals 'low', and slice_b is the collection of data with
'education' equals 'medium' or 'high'.

Example 2:

    bias_slices = [{'education': 'low'},
                   {'education': 'high'}]

Two slices provided. In this case, slice_a is the collection of data
with 'education' equals 'low', and slice_b is the collection of data with
'education' equals 'high'.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ModelEvaluationSlicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ModelEvaluationSlice.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ModelEvaluationSlice.Types.Slicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ModelEvaluationSlice.Types.Slice.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ModelEvaluationSlice.Types.Slice.Types.SliceSpec` |   |

### Labels

    public RepeatedField<string> Labels { get; }

Positive labels selection on the target field.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |