Struct cosyne::Cosyne [−][src]
The main optimization struct
Implementations
impl Cosyne
[src]
pub fn set_mutation_prob(&mut self, mp: f64)
[src]
Set the mutation probability of the population panics in debug mode if mp < 0.0 || mp > 1.0
pub fn set_mutation_strength(&mut self, ms: f64)
[src]
Set the mutation strength of the population panics in debug mode if mp < 0.0 || mp > 1.0
pub fn set_perturb_prob(&mut self, pp: f64)
[src]
Set the perturb probability of the population panics in debug mode if pp < 0.0 || pp > 1.0
pub fn new(env: Box<dyn Environment>, nn: ANN, config: Config) -> Self
[src]
Create a new CoSyNE optimizer with a given environment, neural network and config
pub fn evolve(&mut self)
[src]
Perform an evolutionary step
pub fn champion(&self) -> &(ANN, f64)
[src]
Get the current champion and its fitness
Auto Trait Implementations
impl !RefUnwindSafe for Cosyne
impl !Send for Cosyne
impl !Sync for Cosyne
impl Unpin for Cosyne
impl !UnwindSafe for Cosyne
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,