pub struct TrainingOptions {Show 43 fields
pub warm_start: Option<bool>,
pub l_1_regularization: Option<f64>,
pub input_label_columns: Option<Vec<String>>,
pub feedback_type: Option<FeedbackType>,
pub distance_type: Option<DistanceType>,
pub learn_rate: Option<f64>,
pub optimization_strategy: Option<OptimizationStrategy>,
pub data_split_method: Option<DataSplitMethod>,
pub item_column: Option<String>,
pub data_split_eval_fraction: Option<f64>,
pub hidden_units: Option<Vec<i64>>,
pub num_clusters: Option<i64>,
pub num_factors: Option<i64>,
pub initial_learn_rate: Option<f64>,
pub loss_type: Option<LossType>,
pub min_relative_progress: Option<f64>,
pub dropout: Option<f64>,
pub horizon: Option<i64>,
pub model_uri: Option<String>,
pub min_split_loss: Option<f64>,
pub batch_size: Option<i64>,
pub time_series_timestamp_column: Option<String>,
pub auto_arima: Option<bool>,
pub wals_alpha: Option<f64>,
pub kmeans_initialization_column: Option<String>,
pub max_iterations: Option<i64>,
pub preserve_input_structs: Option<bool>,
pub label_class_weights: Option<HashMap<String, f64>>,
pub learn_rate_strategy: Option<LearnRateStrategy>,
pub kmeans_initialization_method: Option<KmeansInitializationMethod>,
pub user_column: Option<String>,
pub subsample: Option<f64>,
pub l_2_regularization: Option<f64>,
pub auto_arima_max_order: Option<i64>,
pub max_tree_depth: Option<i64>,
pub time_series_data_column: Option<String>,
pub data_split_column: Option<String>,
pub non_seasonal_order: Option<ArimaOrder>,
pub include_drift: Option<bool>,
pub early_stop: Option<bool>,
pub holiday_region: Option<HolidayRegion>,
pub data_frequency: Option<DataFrequency>,
pub time_series_id_column: Option<String>,
}
Fields§
§warm_start: Option<bool>
Whether to train a model from the last checkpoint.
l_1_regularization: Option<f64>
L1 regularization coefficient.
input_label_columns: Option<Vec<String>>
Name of input label columns in training data.
feedback_type: Option<FeedbackType>
Feedback type that specifies which algorithm to run for matrix factorization.
distance_type: Option<DistanceType>
Distance type for clustering models.
learn_rate: Option<f64>
Learning rate in training. Used only for iterative training algorithms.
optimization_strategy: Option<OptimizationStrategy>
Optimization strategy for training linear regression models.
data_split_method: Option<DataSplitMethod>
The data split type for training and evaluation, e.g. RANDOM.
item_column: Option<String>
Item column specified for matrix factorization models.
data_split_eval_fraction: Option<f64>
The fraction of evaluation data over the whole input data. The rest of data will be used as training data. The format should be double. Accurate to two decimal places. Default value is 0.2.
Hidden units for dnn models.
num_clusters: Option<i64>
Number of clusters for clustering models.
num_factors: Option<i64>
Num factors specified for matrix factorization models.
initial_learn_rate: Option<f64>
Specifies the initial learning rate for the line search learn rate strategy.
loss_type: Option<LossType>
Type of loss function used during training run.
min_relative_progress: Option<f64>
When early_stop is true, stops training when accuracy improvement is less than ‘min_relative_progress’. Used only for iterative training algorithms.
dropout: Option<f64>
Dropout probability for dnn models.
horizon: Option<i64>
The number of periods ahead that need to be forecasted.
model_uri: Option<String>
Google Cloud Storage URI from which the model was imported. Only applicable for imported models.
min_split_loss: Option<f64>
Minimum split loss for boosted tree models.
batch_size: Option<i64>
Batch size for dnn models.
time_series_timestamp_column: Option<String>
Column to be designated as time series timestamp for ARIMA model.
auto_arima: Option<bool>
Whether to enable auto ARIMA or not.
wals_alpha: Option<f64>
Hyperparameter for matrix factoration when implicit feedback type is specified.
kmeans_initialization_column: Option<String>
The column used to provide the initial centroids for kmeans algorithm when kmeans_initialization_method is CUSTOM.
max_iterations: Option<i64>
The maximum number of iterations in training. Used only for iterative training algorithms.
preserve_input_structs: Option<bool>
Whether to preserve the input structs in output feature names. Suppose there is a struct A with field b. When false (default), the output feature name is A_b. When true, the output feature name is A.b.
label_class_weights: Option<HashMap<String, f64>>
Weights associated with each label class, for rebalancing the training data. Only applicable for classification models.
learn_rate_strategy: Option<LearnRateStrategy>
The strategy to determine learn rate for the current iteration.
kmeans_initialization_method: Option<KmeansInitializationMethod>
The method used to initialize the centroids for kmeans algorithm.
user_column: Option<String>
User column specified for matrix factorization models.
subsample: Option<f64>
Subsample fraction of the training data to grow tree to prevent overfitting for boosted tree models.
l_2_regularization: Option<f64>
L2 regularization coefficient.
auto_arima_max_order: Option<i64>
The max value of non-seasonal p and q.
max_tree_depth: Option<i64>
Maximum depth of a tree for boosted tree models.
time_series_data_column: Option<String>
Column to be designated as time series data for ARIMA model.
data_split_column: Option<String>
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
non_seasonal_order: Option<ArimaOrder>
A specification of the non-seasonal part of the ARIMA model: the three components (p, d, q) are the AR order, the degree of differencing, and the MA order.
include_drift: Option<bool>
Include drift when fitting an ARIMA model.
early_stop: Option<bool>
Whether to stop early when the loss doesn’t improve significantly any more (compared to min_relative_progress). Used only for iterative training algorithms.
holiday_region: Option<HolidayRegion>
The geographical region based on which the holidays are considered in time series modeling. If a valid value is specified, then holiday effects modeling is enabled.
data_frequency: Option<DataFrequency>
The data frequency of a time series.
time_series_id_column: Option<String>
The time series id column that was used during ARIMA model training.
Trait Implementations§
Source§impl Clone for TrainingOptions
impl Clone for TrainingOptions
Source§fn clone(&self) -> TrainingOptions
fn clone(&self) -> TrainingOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TrainingOptions
impl Debug for TrainingOptions
Source§impl Default for TrainingOptions
impl Default for TrainingOptions
Source§fn default() -> TrainingOptions
fn default() -> TrainingOptions
Source§impl<'de> Deserialize<'de> for TrainingOptions
impl<'de> Deserialize<'de> for TrainingOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for TrainingOptions
impl RefUnwindSafe for TrainingOptions
impl Send for TrainingOptions
impl Sync for TrainingOptions
impl Unpin for TrainingOptions
impl UnwindSafe for TrainingOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request