The function returns NULL if an error was detected, otherwise it returns
the pocket weight vector with the new weights.
FUNCTION
The function stores the network weights of the network pointed to by net
in a pocket vector pointed to by weight_vector. If weight_vector is NULL,
space will be allocated for the pointer to store the weights in; otherwise
just the new pocket is returned.