|
|
@ -89,9 +89,9 @@ impl<F: Float + Scalar + NumAssignOps> NeuraTrainableLayerSelf<DVector<F>> for N
|
|
|
|
|
|
|
|
|
|
|
|
fn get_gradient(
|
|
|
|
fn get_gradient(
|
|
|
|
&self,
|
|
|
|
&self,
|
|
|
|
input: &DVector<F>,
|
|
|
|
_input: &DVector<F>,
|
|
|
|
intermediary: &Self::IntermediaryRepr,
|
|
|
|
_intermediary: &Self::IntermediaryRepr,
|
|
|
|
epsilon: &Self::Output,
|
|
|
|
_epsilon: &Self::Output,
|
|
|
|
) -> Self::Gradient {
|
|
|
|
) -> Self::Gradient {
|
|
|
|
()
|
|
|
|
()
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -102,7 +102,7 @@ impl<F: Float + Scalar + NumAssignOps> NeuraTrainableLayerBackprop<DVector<F>>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
fn backprop_layer(
|
|
|
|
fn backprop_layer(
|
|
|
|
&self,
|
|
|
|
&self,
|
|
|
|
input: &DVector<F>,
|
|
|
|
_input: &DVector<F>,
|
|
|
|
(jacobian_partial, stddev): &Self::IntermediaryRepr,
|
|
|
|
(jacobian_partial, stddev): &Self::IntermediaryRepr,
|
|
|
|
epsilon: &Self::Output,
|
|
|
|
epsilon: &Self::Output,
|
|
|
|
) -> DVector<F> {
|
|
|
|
) -> DVector<F> {
|
|
|
|