Table of Contents

Class SupervisedTuningDatasetDistribution

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

Dataset distribution for Supervised Tuning. This data type is not supported in Gemini API.

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

Properties

BillableSum

Output only. Sum of a given population of values that are billable.

[JsonPropertyName("billableSum")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonConverter(typeof(StringToNullableLongConverter))]
public long? BillableSum { get; set; }

Property Value

long?

Buckets

Output only. Defines the histogram bucket.

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

Property Value

List<SupervisedTuningDatasetDistributionDatasetBucket>

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)]
[JsonConverter(typeof(StringToNullableLongConverter))]
public long? Sum { get; set; }

Property Value

long?

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a SupervisedTuningDatasetDistribution object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

SupervisedTuningDatasetDistribution

The deserialized SupervisedTuningDatasetDistribution object, or null if deserialization fails.