MCPcopy Create free account
hub / github.com/Axect/Peroxide / set_method

Method set_method

src/numerical/optimize.rs:216–219  ·  view source on GitHub ↗

Set optimization method

(&mut self, method: OptMethod)

Source from the content-addressed store, hash-verified

214
215 /// Set optimization method
216 pub fn set_method(&mut self, method: OptMethod) -> &mut Self {
217 self.method = method;
218 self
219 }
220
221 /// Set learning rate for `GradientDescent`
222 pub fn set_lr(&mut self, lr: f64) -> &mut Self {

Calls

no outgoing calls