Class DatasetDistribution

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.DatasetDistribution

public abstract class DatasetDistribution extends JsonSerializable
Distribution computed over a tuning dataset.
  • Constructor Details

    • DatasetDistribution

      public DatasetDistribution()
  • Method Details

    • buckets

      Output only. Defines the histogram bucket.
    • max

      public abstract Optional<Double> max()
      Output only. The maximum of the population values.
    • mean

      public abstract Optional<Double> mean()
      Output only. The arithmetic mean of the values in the population.
    • median

      public abstract Optional<Double> median()
      Output only. The median of the values in the population.
    • min

      public abstract Optional<Double> min()
      Output only. The minimum of the population values.
    • p5

      public abstract Optional<Double> p5()
      Output only. The 5th percentile of the values in the population.
    • p95

      public abstract Optional<Double> p95()
      Output only. The 95th percentile of the values in the population.
    • sum

      public abstract Optional<Double> sum()
      Output only. Sum of a given population of values.
    • builder

      public static DatasetDistribution.Builder builder()
      Instantiates a builder for DatasetDistribution.
    • toBuilder

      public abstract DatasetDistribution.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static DatasetDistribution fromJson(String jsonString)
      Deserializes a JSON string to a DatasetDistribution object.