MCPcopy Create free account
hub / github.com/daniel-e/rustml / alpha

Method alpha

src/opt.rs:86–92  ·  view source on GitHub ↗

Sets the learning rate. # Example ``` use rustml::opt::*; let opts = empty_opts().alpha(0.2); assert_eq!(opts.alpha.unwrap(), 0.2); ```

(&self, val: T)

Source from the content-addressed store, hash-verified

84 /// assert_eq!(opts.alpha.unwrap(), 0.2);
85 /// ```
86 pub fn alpha(&self, val: T) -> OptParams<T> {
87 OptParams {
88 alpha: Some(val),
89 iter: self.iter.clone(),
90 eps: self.eps.clone(),
91 }
92 }
93
94 /// Sets the maximum number of iterations.
95 ///

Callers 4

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
plot_nnFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected