Class DataStreamParams.Config.TextClassificationData.Builder
-
- All Implemented Interfaces:
public final class DataStreamParams.Config.TextClassificationData.BuilderA builder for TextClassificationData.
-
-
Method Summary
-
-
Method Detail
-
classNames
final DataStreamParams.Config.TextClassificationData.Builder classNames(List<String> classNames)
List of class names indexed by label integer in the dataset. E.g. "Retained", "Exited" when 0, 1 are in your label column.
-
classNames
final DataStreamParams.Config.TextClassificationData.Builder classNames(JsonField<List<String>> classNames)
Sets Builder.classNames to an arbitrary JSON value.
You should usually call Builder.classNames with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addClassName
final DataStreamParams.Config.TextClassificationData.Builder addClassName(String className)
Adds a single String to classNames.
-
inferenceIdColumnName
final DataStreamParams.Config.TextClassificationData.Builder inferenceIdColumnName(String inferenceIdColumnName)
Name of the column with the inference ids. This is useful if you want to update rows at a later point in time. If not provided, a unique id is generated by Openlayer.
-
inferenceIdColumnName
final DataStreamParams.Config.TextClassificationData.Builder inferenceIdColumnName(JsonField<String> inferenceIdColumnName)
Sets Builder.inferenceIdColumnName to an arbitrary JSON value.
You should usually call Builder.inferenceIdColumnName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
labelColumnName
final DataStreamParams.Config.TextClassificationData.Builder labelColumnName(String labelColumnName)
Name of the column with the labels. The data in this column must be zero-indexed integers, matching the list provided in
classNames.
-
labelColumnName
final DataStreamParams.Config.TextClassificationData.Builder labelColumnName(JsonField<String> labelColumnName)
Sets Builder.labelColumnName to an arbitrary JSON value.
You should usually call Builder.labelColumnName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
latencyColumnName
final DataStreamParams.Config.TextClassificationData.Builder latencyColumnName(String latencyColumnName)
Name of the column with the latencies.
-
latencyColumnName
final DataStreamParams.Config.TextClassificationData.Builder latencyColumnName(JsonField<String> latencyColumnName)
Sets Builder.latencyColumnName to an arbitrary JSON value.
You should usually call Builder.latencyColumnName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
metadata
final DataStreamParams.Config.TextClassificationData.Builder metadata(JsonValue metadata)
Object with metadata.
-
predictionsColumnName
final DataStreamParams.Config.TextClassificationData.Builder predictionsColumnName(String predictionsColumnName)
Name of the column with the model's predictions as zero-indexed integers.
-
predictionsColumnName
final DataStreamParams.Config.TextClassificationData.Builder predictionsColumnName(JsonField<String> predictionsColumnName)
Sets Builder.predictionsColumnName to an arbitrary JSON value.
You should usually call Builder.predictionsColumnName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
predictionScoresColumnName
final DataStreamParams.Config.TextClassificationData.Builder predictionScoresColumnName(String predictionScoresColumnName)
Name of the column with the model's predictions as lists of class probabilities.
-
predictionScoresColumnName
final DataStreamParams.Config.TextClassificationData.Builder predictionScoresColumnName(JsonField<String> predictionScoresColumnName)
Sets Builder.predictionScoresColumnName to an arbitrary JSON value.
You should usually call Builder.predictionScoresColumnName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
textColumnName
final DataStreamParams.Config.TextClassificationData.Builder textColumnName(String textColumnName)
Name of the column with the text data.
-
textColumnName
final DataStreamParams.Config.TextClassificationData.Builder textColumnName(JsonField<String> textColumnName)
Sets Builder.textColumnName to an arbitrary JSON value.
You should usually call Builder.textColumnName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
timestampColumnName
final DataStreamParams.Config.TextClassificationData.Builder timestampColumnName(String timestampColumnName)
Name of the column with the timestamps. Timestamps must be in UNIX sec format. If not provided, the upload timestamp is used.
-
timestampColumnName
final DataStreamParams.Config.TextClassificationData.Builder timestampColumnName(JsonField<String> timestampColumnName)
Sets Builder.timestampColumnName to an arbitrary JSON value.
You should usually call Builder.timestampColumnName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final DataStreamParams.Config.TextClassificationData.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final DataStreamParams.Config.TextClassificationData.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final DataStreamParams.Config.TextClassificationData.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final DataStreamParams.Config.TextClassificationData.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final DataStreamParams.Config.TextClassificationData.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final DataStreamParams.Config.TextClassificationData build()
Returns an immutable instance of TextClassificationData.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.classNames()
-
-
-
-