public interface WeightRegularizer extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
applyRegularization(Matrix W,
Vec b)
Applies regularization to one matrix, where the rows of the matrix
correspond tot he weights associated to one neuron's input.
|
void |
applyRegularization(Matrix W,
Vec b,
ExecutorService ex)
Applies regularization to one matrix, where the rows of the matrix
correspond tot he weights associated to one neuron's input.
|
double |
applyRegularizationToRow(Vec w,
double b)
Applies the regularization to one row of the weight matrix, where the row
corresponds to the weights into one neuron.
|
WeightRegularizer |
clone() |
void applyRegularization(Matrix W, Vec b)
W
- the matrix to apply regularization tob
- the vector of bias terms to apply regularization tovoid applyRegularization(Matrix W, Vec b, ExecutorService ex)
W
- the matrix to apply regularization tob
- the vector of bias terms to apply regularization toex
- the source of threads for parallel computationdouble applyRegularizationToRow(Vec w, double b)
w
- the weight row to be altered depending on the regularization methodb
- the original bias input to this rowWeightRegularizer clone()
Copyright © 2017. All rights reserved.