Struct tensorflow::ops::SdcaOptimizer
source · [−]pub struct SdcaOptimizer { /* private fields */ }Expand description
Builder for the SdcaOptimizer operation.
Implementations
sourceimpl 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.
Trait Implementations
sourceimpl Debug for SdcaOptimizer
impl Debug for SdcaOptimizer
sourceimpl Default for SdcaOptimizer
impl Default for SdcaOptimizer
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more