Keras Custom Scaling Layer
<p>For my work, I need to make a layer, that has only single weight, that will multiply the data in the current layer by some trained value. Is there a way to do this?</p>

<p>Or change the merge layer, which will be able to make a weighted average of input layers.
Thanks</p>

<p>Try Lambda layer</p>

<pre><code>model.add(Lambda(lambda x: x *MyValue))
</code></pre>

<p><a href="https://keras.io/layers/core/#lambda" rel="nofollow">https://keras.io/layers/core/#lambda</a></p>

python machine-learning keras