Class DatasetStats
-
- All Implemented Interfaces:
public abstract class DatasetStats extends JsonSerializable
Statistics 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 classDatasetStats.BuilderBuilder for DatasetStats.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description DatasetStats()
-
Method Summary
Modifier and Type Method Description abstract Optional<List<Long>>droppedExampleIndices()Output only. abstract Optional<List<String>>droppedExampleReasons()Output only. abstract Optional<Long>totalBillableCharacterCount()Output only. abstract Optional<Long>totalTuningCharacterCount()Output only. abstract Optional<Long>tuningDatasetExampleCount()Output only. abstract Optional<Long>tuningStepCount()Output only. abstract Optional<List<Content>>userDatasetExamples()Output only. abstract Optional<DatasetDistribution>userInputTokenDistribution()Output only. abstract Optional<DatasetDistribution>userMessagePerExampleDistribution()Output only. abstract Optional<DatasetDistribution>userOutputTokenDistribution()Output only. static DatasetStats.Builderbuilder()Instantiates a builder for DatasetStats. abstract DatasetStats.BuildertoBuilder()Creates a builder with the same values as this instance. static DatasetStatsfromJson(String jsonString)Deserializes a JSON string to a DatasetStats 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
-
droppedExampleIndices
abstract Optional<List<Long>> droppedExampleIndices()
Output only. A partial sample of the indices (starting from 1) of the dropped examples.
-
droppedExampleReasons
abstract Optional<List<String>> droppedExampleReasons()
Output only. For each index in `dropped_example_indices`, the user-facing reason why the example was dropped.
-
totalBillableCharacterCount
abstract Optional<Long> totalBillableCharacterCount()
Output only. Number of billable characters in the tuning dataset.
-
totalTuningCharacterCount
abstract Optional<Long> totalTuningCharacterCount()
Output only. Number of tuning characters in the tuning dataset.
-
tuningDatasetExampleCount
abstract Optional<Long> tuningDatasetExampleCount()
Output only. Number of examples in the tuning dataset.
-
tuningStepCount
abstract Optional<Long> tuningStepCount()
Output only. Number of tuning steps for this Tuning Job.
-
userDatasetExamples
abstract Optional<List<Content>> userDatasetExamples()
Output only. Sample user messages in the training dataset uri.
-
userInputTokenDistribution
abstract Optional<DatasetDistribution> userInputTokenDistribution()
Output only. Dataset distributions for the user input tokens.
-
userMessagePerExampleDistribution
abstract Optional<DatasetDistribution> userMessagePerExampleDistribution()
Output only. Dataset distributions for the messages per example.
-
userOutputTokenDistribution
abstract Optional<DatasetDistribution> userOutputTokenDistribution()
Output only. Dataset distributions for the user output tokens.
-
builder
static DatasetStats.Builder builder()
Instantiates a builder for DatasetStats.
-
toBuilder
abstract DatasetStats.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static DatasetStats fromJson(String jsonString)
Deserializes a JSON string to a DatasetStats object.
-
-
-
-