Struct cosyne::Cosyne[][src]

pub struct Cosyne { /* fields omitted */ }

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,