Package com.google.genai.types
Class DatasetDistribution
-
- All Implemented Interfaces:
public abstract class DatasetDistribution extends JsonSerializable
Distribution computed over a tuning dataset. This data type is not supported in Gemini API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classDatasetDistribution.BuilderBuilder for DatasetDistribution.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description DatasetDistribution()
-
Method Summary
Modifier and Type Method Description abstract Optional<List<DatasetDistributionDistributionBucket>>buckets()Output only. abstract Optional<Double>max()Output only. abstract Optional<Double>mean()Output only. abstract Optional<Double>median()Output only. abstract Optional<Double>min()Output only. abstract Optional<Double>p5()Output only. abstract Optional<Double>p95()Output only. abstract Optional<Double>sum()Output only. static DatasetDistribution.Builderbuilder()Instantiates a builder for DatasetDistribution. abstract DatasetDistribution.BuildertoBuilder()Creates a builder with the same values as this instance. static DatasetDistributionfromJson(String jsonString)Deserializes a JSON string to a DatasetDistribution object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
buckets
abstract Optional<List<DatasetDistributionDistributionBucket>> buckets()
Output only. Defines the histogram bucket.
-
mean
abstract Optional<Double> mean()
Output only. The arithmetic mean of the values in the population.
-
p95
abstract Optional<Double> p95()
Output only. The 95th percentile of the values in the population.
-
builder
static DatasetDistribution.Builder builder()
Instantiates a builder for DatasetDistribution.
-
toBuilder
abstract DatasetDistribution.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static DatasetDistribution fromJson(String jsonString)
Deserializes a JSON string to a DatasetDistribution object.
-
-
-
-