Struct vrp_core::algorithms::gsom::Network [−][src]
Expand description
A customized Growing Self Organizing Map designed to store and retrieve trained input.
Implementations
impl<I: Input, S: Storage<Item = I>> Network<I, S>[src]
impl<I: Input, S: Storage<Item = I>> Network<I, S>[src]pub fn new(
roots: [I; 4],
config: NetworkConfig,
storage_factory: Box<dyn Fn() -> S + Send + Sync>
) -> Self[src]
pub fn new(
roots: [I; 4],
config: NetworkConfig,
storage_factory: Box<dyn Fn() -> S + Send + Sync>
) -> Self[src]Creates a new instance of Network.
pub fn store_batch<T: Sized + Send + Sync>(
&mut self,
item_data: Vec<T>,
time: usize,
map_func: fn(_: T) -> I
)[src]
pub fn store_batch<T: Sized + Send + Sync>(
&mut self,
item_data: Vec<T>,
time: usize,
map_func: fn(_: T) -> I
)[src]Stores multiple inputs into the network.
pub fn retrain(
&mut self,
rebalance_count: usize,
node_filter: &dyn Fn(&NodeLink<I, S>) -> bool
)[src]
pub fn retrain(
&mut self,
rebalance_count: usize,
node_filter: &dyn Fn(&NodeLink<I, S>) -> bool
)[src]Retrains the whole network.
pub fn get_coordinates(&self) -> impl Iterator<Item = Coordinate> + '_[src]
pub fn get_coordinates(&self) -> impl Iterator<Item = Coordinate> + '_[src]Returns node coordinates in arbitrary order.
Auto Trait Implementations
impl<I, S> !RefUnwindSafe for Network<I, S>
impl<I, S> Send for Network<I, S>
impl<I, S> Sync for Network<I, S>
impl<I, S> Unpin for Network<I, S>
impl<I, S> !UnwindSafe for Network<I, S>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,