pub struct TrainingSettings {
pub accuracy_error: f64,
pub step: f64,
pub max_iterations: u64,
pub error_predictions: usize,
pub reset_interval: u64,
pub elasticity: f64,
pub debug: bool,
}
Expand description
Stores training settings.
Fields§
§accuracy_error: f64
Acceptable accuracy in error.
step: f64
The minimum step value.
When error_predictions
is set to 0
, this is used as fixed step.
max_iterations: u64
Maximum number of iterations.
error_predictions: usize
The number of error prediction terms.
More terms accelerate the search, but might lead to instability.
reset_interval: u64
The interval to reset error predictions, in case they are far off or become unstable.
elasticity: f64
A factor greater than zero to prevent under or over-stepping.
E.g. 0.95
This is used because predicted errors does not provide information about the gradient directly in the domain. Elasticity is used to estimate the gradient.
debug: bool
Whether to print out result each reset interval.
Trait Implementations§
Source§impl Clone for TrainingSettings
impl Clone for TrainingSettings
Source§fn clone(&self) -> TrainingSettings
fn clone(&self) -> TrainingSettings
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TrainingSettings
impl Debug for TrainingSettings
impl Copy for TrainingSettings
Auto Trait Implementations§
impl Freeze for TrainingSettings
impl RefUnwindSafe for TrainingSettings
impl Send for TrainingSettings
impl Sync for TrainingSettings
impl Unpin for TrainingSettings
impl UnwindSafe for TrainingSettings
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