cnn_dann
init_weights(feature_extractor, regressor)
Initialize the weights of the feature extractor and regressor in-place.
For the weight matrices the Xavier uniform initialization is used. The biases are initialized to zero. This function works only for the networks returned by a call to rul_adapt.construct.get_cnn_dann.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
feature_extractor |
CnnExtractor
|
The feature extractor network to be initialized. |
required |
regressor |
DropoutPrefix
|
The regressor network to be initialized. |
required |