[−][src]Struct dumbnet::layers::OutputLayer
The final layer of a Network.
Methods
impl<A: Activation, Neurons: NL<Input>, Input: AL> OutputLayer<A, Neurons, Input>
[src]
Trait Implementations
impl<A: Clone + Activation, Neurons: Clone + NL<Input>, Input: Clone + AL> Clone for OutputLayer<A, Neurons, Input>
[src]
fn clone(&self) -> OutputLayer<A, Neurons, Input>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<A: Debug + Activation, Neurons: Debug + NL<Input>, Input: Debug + AL> Debug for OutputLayer<A, Neurons, Input>
[src]
impl<'de, A: Activation, Neurons: NL<Input>, Input: AL> Deserialize<'de> for OutputLayer<A, Neurons, Input> where
Neurons: NL<Input>,
Input: AL,
[src]
Neurons: NL<Input>,
Input: AL,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<A: Activation, Input: AL, Neurons: NL<Input>> Layer<Input, Neurons, Neurons, A> for OutputLayer<A, Neurons, Input>
[src]
fn calculate(
&self,
inputs: &GenericArray<f32, Input>
) -> GenericArray<f32, Neurons>
[src]
&self,
inputs: &GenericArray<f32, Input>
) -> GenericArray<f32, Neurons>
fn step(
&self,
inputs: &GenericArray<f32, Neurons>
) -> GenericArray<f32, Neurons>
[src]
&self,
inputs: &GenericArray<f32, Neurons>
) -> GenericArray<f32, Neurons>
fn weight(
&self,
inputs: &GenericArray<f32, Input>
) -> GenericArray<f32, Neurons>
[src]
&self,
inputs: &GenericArray<f32, Input>
) -> GenericArray<f32, Neurons>
fn _get_error(
&mut self,
output: GenericArray<f32, Neurons>,
correct_output: &GenericArray<f32, Neurons>,
_speed: f32
) -> (GenericArray<f32, Neurons>, GenericArray<f32, Neurons>)
[src]
&mut self,
output: GenericArray<f32, Neurons>,
correct_output: &GenericArray<f32, Neurons>,
_speed: f32
) -> (GenericArray<f32, Neurons>, GenericArray<f32, Neurons>)
fn _apply_deltas(
&mut self,
deltas: GenericArray<f32, Neurons>,
inputs: &GenericArray<f32, Input>,
speed: f32
)
[src]
&mut self,
deltas: GenericArray<f32, Neurons>,
inputs: &GenericArray<f32, Input>,
speed: f32
)
fn _pre_error(
&self,
deltas: &GenericArray<f32, Neurons>
) -> GenericArray<f32, Input>
[src]
&self,
deltas: &GenericArray<f32, Neurons>
) -> GenericArray<f32, Input>
fn backprop(
&mut self,
input: &GenericArray<f32, Input>,
correct_output: &GenericArray<f32, FinalOut>,
speed: f32
) -> (GenericArray<f32, Input>, GenericArray<f32, FinalOut>)
[src]
&mut self,
input: &GenericArray<f32, Input>,
correct_output: &GenericArray<f32, FinalOut>,
speed: f32
) -> (GenericArray<f32, Input>, GenericArray<f32, FinalOut>)
fn _weight_errors(
&self,
error: GenericArray<f32, Neurons>,
weighted_inputs: &GenericArray<f32, Neurons>
) -> GenericArray<f32, Neurons>
[src]
&self,
error: GenericArray<f32, Neurons>,
weighted_inputs: &GenericArray<f32, Neurons>
) -> GenericArray<f32, Neurons>
fn teach<F: FnMut(usize, f32), I: IntoIterator<Item = (GenericArray<f32, Input>, GenericArray<f32, FinalOut>)>>(
&mut self,
lesson: I,
iterations: usize,
callback: F
) where
<I as IntoIterator>::IntoIter: Clone,
[src]
&mut self,
lesson: I,
iterations: usize,
callback: F
) where
<I as IntoIterator>::IntoIter: Clone,
impl<A: Activation, Neurons: NL<Input>, Input: AL> Serialize for OutputLayer<A, Neurons, Input> where
Neurons: NL<Input>,
Input: AL,
[src]
Neurons: NL<Input>,
Input: AL,
Auto Trait Implementations
impl<A, Neurons, Input> RefUnwindSafe for OutputLayer<A, Neurons, Input> where
A: RefUnwindSafe,
<Neurons as ArrayLength<f32>>::ArrayType: RefUnwindSafe,
<Neurons as ArrayLength<GenericArray<f32, Input>>>::ArrayType: RefUnwindSafe,
A: RefUnwindSafe,
<Neurons as ArrayLength<f32>>::ArrayType: RefUnwindSafe,
<Neurons as ArrayLength<GenericArray<f32, Input>>>::ArrayType: RefUnwindSafe,
impl<A, Neurons, Input> Send for OutputLayer<A, Neurons, Input> where
A: Send,
A: Send,
impl<A, Neurons, Input> Sync for OutputLayer<A, Neurons, Input> where
A: Sync,
A: Sync,
impl<A, Neurons, Input> Unpin for OutputLayer<A, Neurons, Input> where
A: Unpin,
<Neurons as ArrayLength<f32>>::ArrayType: Unpin,
<Neurons as ArrayLength<GenericArray<f32, Input>>>::ArrayType: Unpin,
A: Unpin,
<Neurons as ArrayLength<f32>>::ArrayType: Unpin,
<Neurons as ArrayLength<GenericArray<f32, Input>>>::ArrayType: Unpin,
impl<A, Neurons, Input> UnwindSafe for OutputLayer<A, Neurons, Input> where
A: UnwindSafe,
<Neurons as ArrayLength<f32>>::ArrayType: UnwindSafe,
<Neurons as ArrayLength<GenericArray<f32, Input>>>::ArrayType: UnwindSafe,
A: UnwindSafe,
<Neurons as ArrayLength<f32>>::ArrayType: UnwindSafe,
<Neurons as ArrayLength<GenericArray<f32, Input>>>::ArrayType: UnwindSafe,
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> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
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>,