can someone show me how to implement a step activation function in pybrain ?
eg.
def stepActivationFunction(n):
if n > 0.5: return 1.
else: return 0.
I can't seem to find any implementation in pybrain.structure.modules ?
Thanks
EDIT
I now understand that you can extend pybrain and create your own layers. However, i'm still not sure how to do this based on the documentation. Can someone possibly show me an example of how to create a layer that implements a step activation function ?