Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void MultiLayerNetwork::SetTheWeights (const double initWt[]) {
- // load all weights in network using values in initWt
- // initWt has the weights for this layer, followed by those for next
- // rest are weights for next layer
- // first numWeights weights are for this layer
- // copy these weights from intWt[0..] into Weights
- SigmoidalLayerNetwork::SetTheWeights(initWt);
- // Weights starting at initWt[numWeights] are weights for next layer
- // so SetTheWeights in the next layer passing the address of the first of these
- nextlayer -> SetTheWeights(&initWt[numWeights]);
- }
- int MultiLayerNetwork::HowManyWeights (void) {
- // return the number of weights in network
- return 0; /// change this
- }
Advertisement
Add Comment
Please, Sign In to add comment