Table of Contents

Class DatasetDistribution

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

Distribution computed over a tuning dataset. This data type is not supported in Gemini API.

public record DatasetDistribution : IEquatable<DatasetDistribution>
Inheritance
DatasetDistribution
Implements
Inherited Members

Properties

Buckets

Output only. Defines the histogram bucket.

[JsonPropertyName("buckets")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<DatasetDistributionDistributionBucket>? Buckets { get; set; }

Property Value

List<DatasetDistributionDistributionBucket>

Max

Output only. The maximum of the population values.

[JsonPropertyName("max")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public double? Max { get; set; }

Property Value

double?

Mean

Output only. The arithmetic mean of the values in the population.

[JsonPropertyName("mean")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public double? Mean { get; set; }

Property Value

double?

Median

Output only. The median of the values in the population.

[JsonPropertyName("median")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public double? Median { get; set; }

Property Value

double?

Min

Output only. The minimum of the population values.

[JsonPropertyName("min")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public double? Min { get; set; }

Property Value

double?

P5

Output only. The 5th percentile of the values in the population.

[JsonPropertyName("p5")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public double? P5 { get; set; }

Property Value

double?

P95

Output only. The 95th percentile of the values in the population.

[JsonPropertyName("p95")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public double? P95 { get; set; }

Property Value

double?

Sum

Output only. Sum of a given population of values.

[JsonPropertyName("sum")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public double? Sum { get; set; }

Property Value

double?

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a DatasetDistribution object.

public static DatasetDistribution? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

DatasetDistribution

The deserialized DatasetDistribution object, or null if deserialization fails.