4 examples of 'kernel initializer keras' in Python

Every line of 'kernel initializer keras' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
21def __init__(self, eps_std=0.05, seed=None):
22 self.eps_std = eps_std
23 self.seed = seed
24 self.orthogonal = Orthogonal()
26def W_init(shape,name=None):
27 """Initialize weights as in paper"""
28 values = rng.normal(loc=0,scale=1e-2,size=shape)
29 return K.variable(values,name=name)
39def my_init(shape, name=None):
40 return initializations.normal(shape, scale=0.1, name=name)
10def init(in_feats, kernel_size=3):
11 std = 1./math.sqrt(in_feats*(kernel_size**2))
12 return tf.random_uniform_initializer(-std, std)

Related snippets