Class TrainingOptions (1.26.1)

Protocol buffer.

Type of loss function used during training run.

L1 regularization coefficient.

When early_stop is true, stops training when accuracy improvement is less than ‘min_relative_progress’. Used only for iterative training algorithms.

Whether to stop early when the loss doesn’t improve significantly any more (compared to min_relative_progress). Used only for iterative training algorithms.

The data split type for training and evaluation, e.g. RANDOM.

The column to split data with. This column won’t be used as a feature. 1. When data_split_method is CUSTOM, the corresponding column should be boolean. The rows with true value tag are eval data, and the false are training data. 2. When data_split_method is SEQ, the first DATA_SPLIT_EVAL_FRACTION rows (from smallest to largest) in the corresponding column are used as training data, and the rest are eval data. It respects the order in Orderable data types: https://cloud.google.com/bigquery/docs/reference/standard- sql/data-types#data-type-properties

Specifies the initial learning rate for the line search learn rate strategy.

Distance type for clustering models.

[Beta] Google Cloud Storage URI from which the model was imported. Only applicable for imported models.

The method used to initialize the centroids for kmeans algorithm.

Inheritance

builtins.object > google.protobuf.pyext._message.CMessage > builtins.object > google.protobuf.message.Message > TrainingOptions

Classes

LabelClassWeightsEntry

API documentation for bigquery_v2.types.Model.TrainingRun.TrainingOptions.LabelClassWeightsEntry class.

Methods

ByteSize

Returns the size of the message in bytes.

Clear

Clears the message.

ClearExtension

Clears a message field.

ClearField

Clears a message field.

CopyFrom

Copies a protocol message into the current message.

DiscardUnknownFields

Discards the unknown fields.

FindInitializationErrors

Finds unset required fields.

FromString

Creates new method instance from given serialized data.

HasExtension

Checks if a message field is set.

HasField

Checks if a message field is set.

IsInitialized

Checks if all required fields of a protocol message are set.

ListFields

Lists all set fields of a message.

MergeFrom

Merges a protocol message into the current message.

MergeFromString

Merges a serialized message into the current message.

ParseFromString

Parses a serialized message into the current message.

RegisterExtension

Registers an extension with the current message.

SerializePartialToString

Serializes the message to a string, even if it isn't initialized.

SerializeToString

Serializes the message to a string, only for initialized messages.

SetInParent

Sets the has bit of the given field in its parent message.

UnknownFields

Parse unknown field set

WhichOneof

Returns the name of the field set inside a oneof, or None if no field is set.

__getstate__

__getstate__()

Support the pickle protocol.

__setstate__

__setstate__(state)

Support the pickle protocol.