[−][src]Struct rusticsom::SOM
Methods
impl SOM
[src]
pub fn create(
length: usize,
breadth: usize,
inputs: usize,
randomize: bool,
learning_rate: Option<f32>,
sigma: Option<f32>,
decay_function: Option<fn(_: f32, _: u32, _: u32) -> f64>,
neighbourhood_function: Option<fn(_: (usize, usize), _: (usize, usize), _: f32) -> Array2<f64>>
) -> SOM
[src]
length: usize,
breadth: usize,
inputs: usize,
randomize: bool,
learning_rate: Option<f32>,
sigma: Option<f32>,
decay_function: Option<fn(_: f32, _: u32, _: u32) -> f64>,
neighbourhood_function: Option<fn(_: (usize, usize), _: (usize, usize), _: f32) -> Array2<f64>>
) -> SOM
pub fn winner(&mut self, elem: Array1<f64>) -> (usize, usize)
[src]
pub fn from_json(
serialized: &str,
decay_function: Option<fn(_: f32, _: u32, _: u32) -> f64>,
neighbourhood_function: Option<fn(_: (usize, usize), _: (usize, usize), _: f32) -> Array2<f64>>
) -> Result<SOM>
[src]
serialized: &str,
decay_function: Option<fn(_: f32, _: u32, _: u32) -> f64>,
neighbourhood_function: Option<fn(_: (usize, usize), _: (usize, usize), _: f32) -> Array2<f64>>
) -> Result<SOM>
pub fn to_json(&self) -> Result<String>
[src]
pub fn train_random(&mut self, data: Array2<f64>, iterations: u32)
[src]
pub fn train_batch(&mut self, data: Array2<f64>, iterations: u32)
[src]
pub fn activation_response(&self) -> ArrayView2<usize>
[src]
pub fn winner_dist(&mut self, elem: Array1<f64>) -> ((usize, usize), f64)
[src]
pub fn get_size(&self) -> (usize, usize)
[src]
pub fn distance_map(&self) -> Array2<f64>
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SOM
impl Send for SOM
impl Sync for SOM
impl Unpin for SOM
impl UnwindSafe for SOM
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,
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
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>,