Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

weight constraints keras cnn



1
2
3
4
5
6
# example of max norm on a cnn layer
from keras.layers import Conv2D
from keras.constraints import max_norm
...
model.add(Conv2D(32, (3,3), kernel_constraint=max_norm(3), bias_constraint=max_norm(3)))
Source by machinelearningmastery.com #
 
PREVIOUS NEXT
Tagged: #weight #constraints #keras #cnn
ADD COMMENT
Topic
Name
7+7 =