3 ms·
I am a complete machine learning noob, so this could just be my lack of skill. Having looked at most of the popular ML frameworks, none of them seem to provide
by spangry 9y ago
I am a complete machine learning noob, so this could just be my lack of skill. Having looked at most of the popular ML frameworks, none of them seem to provide an easy, functional way to implement a custom 'neuron'. That is:
function (someinput):
output = do_stuff
return output
Which then gets passed on to the next layer. Again, it's quite possible I've just missed something, or there is some inherent ML limitation that makes this impossible. But if such a thing is possible, it would be a rather awesome feature from my POV.
- Q6T46nT668w6i3m 9y agoMany do. For example, the `Lambda` Layer from Keras: https://keras.io/layers/core/#lambda https://keras.io/layers/core/#lambda
- spangry 9y agoYeah tried that one a while ago but didn't have much success. I'm a bit of a dummy when it comes to ML. That said, it looks like they've updated the documentation or something, so might be time to give it another whirl. Thanks for the reply.
- sirfz 9y agotensorflow's py_func allows you to do that, you can also write your own C++ operators, their API interface for that is pretty nice. In fact, you should be able to pretty much write any op you need by combining existing ops (maybe not as efficient as you'd like but yields the results you want).
- spangry 9y agoSorry I'm late to reply. This looks perfect for what I have in mind! Thanks!
- IshKebab 9y agoThis is another area CNTK's 'BrainScript' excels. You can pretty much express it as normal maths: https://github.com/Microsoft/CNTK/wiki/BrainScript-Activation-Functions#expressing-other-non-linearities-in-brainscript https://github.com/Microsoft/CNTK/wiki/BrainScript-Activatio... List of functions: https://github.com/Microsoft/CNTK/wiki/BrainScript-Full-Function-Reference https://github.com/Microsoft/CNTK/wiki/BrainScript-Full-Func...