Struct tensorflow::ops::SdcaOptimizer
source · pub struct SdcaOptimizer { /* private fields */ }Expand description
Builder for the SdcaOptimizer operation.
Implementations§
source§impl SdcaOptimizer
impl SdcaOptimizer
sourcepub fn loss_type<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn loss_type<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the loss_type attribute.
sourcepub fn adaptative<ArgType: Into<bool>>(self, value: ArgType) -> Self
pub fn adaptative<ArgType: Into<bool>>(self, value: ArgType) -> Self
Sets the adaptative attribute.
sourcepub fn num_sparse_features<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn num_sparse_features<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the num_sparse_features attribute.
sourcepub fn num_sparse_features_with_values<ArgType: Into<i64>>(
self,
value: ArgType
) -> Self
pub fn num_sparse_features_with_values<ArgType: Into<i64>>( self, value: ArgType ) -> Self
Sets the num_sparse_features_with_values attribute.
sourcepub fn num_dense_features<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn num_dense_features<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the num_dense_features attribute.
sourcepub fn num_loss_partitions<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn num_loss_partitions<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the num_loss_partitions attribute.
sourcepub fn num_inner_iterations<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn num_inner_iterations<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the num_inner_iterations attribute.
sourcepub fn add_control_input(self, op: Operation) -> Self
pub fn add_control_input(self, op: Operation) -> Self
Adds a control input.
sourcepub fn build<O0: Into<Output>, O1: Into<Output>, O2: Into<Output>, O3: Into<Output>, O4: Into<Output>, O5: Into<Output>, O6: Into<Output>, O7: Into<Output>, O8: Into<Output>, O9: Into<Output>>(
&self,
sparse_example_indices: O0,
sparse_feature_indices: O1,
sparse_feature_values: O2,
dense_features: O3,
example_weights: O4,
example_labels: O5,
sparse_indices: O6,
sparse_weights: O7,
dense_weights: O8,
example_state_data: O9,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>, O1: Into<Output>, O2: Into<Output>, O3: Into<Output>, O4: Into<Output>, O5: Into<Output>, O6: Into<Output>, O7: Into<Output>, O8: Into<Output>, O9: Into<Output>>( &self, sparse_example_indices: O0, sparse_feature_indices: O1, sparse_feature_values: O2, dense_features: O3, example_weights: O4, example_labels: O5, sparse_indices: O6, sparse_weights: O7, dense_weights: O8, example_state_data: O9, scope: &mut Scope ) -> Result<Operation>
Builds the SdcaOptimizer operation.
sourcepub fn build_instance(
&self,
sparse_example_indices: Vec<Output>,
sparse_feature_indices: Vec<Output>,
sparse_feature_values: Vec<Output>,
dense_features: Vec<Output>,
example_weights: Output,
example_labels: Output,
sparse_indices: Vec<Output>,
sparse_weights: Vec<Output>,
dense_weights: Vec<Output>,
example_state_data: Output,
scope: &mut Scope
) -> Result<SdcaOptimizerInst>
pub fn build_instance( &self, sparse_example_indices: Vec<Output>, sparse_feature_indices: Vec<Output>, sparse_feature_values: Vec<Output>, dense_features: Vec<Output>, example_weights: Output, example_labels: Output, sparse_indices: Vec<Output>, sparse_weights: Vec<Output>, dense_weights: Vec<Output>, example_state_data: Output, scope: &mut Scope ) -> Result<SdcaOptimizerInst>
Builds a new instance of ‘SdcaOptimizer’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
source§impl Debug for SdcaOptimizer
impl Debug for SdcaOptimizer
source§impl Default for SdcaOptimizer
impl Default for SdcaOptimizer
source§fn default() -> SdcaOptimizer
fn default() -> SdcaOptimizer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for SdcaOptimizer
impl Send for SdcaOptimizer
impl Sync for SdcaOptimizer
impl Unpin for SdcaOptimizer
impl UnwindSafe for SdcaOptimizer
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
Mutably borrows from an owned value. Read more