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

Method iter

src/opt.rs:103–109  ·  view source on GitHub ↗

Sets the maximum number of iterations. # Example ``` use rustml::opt::*; let opts = empty_opts().iter(100); assert_eq!(opts.iter.unwrap(), 100); ```

(&self, val: usize)

Source from the content-addressed store, hash-verified

101 /// assert_eq!(opts.iter.unwrap(), 100);
102 /// ```
103 pub fn iter(&self, val: usize) -> OptParams<T> {
104 OptParams {
105 alpha: self.alpha.clone(),
106 iter: Some(val),
107 eps: self.eps.clone(),
108 }
109 }
110
111 /// Sets the stopping criterion.
112 ///

Callers 4

matrixMethod · 0.45
optFunction · 0.45
opt_hypothesisFunction · 0.45
plot_learning_curveFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected