Your two sigmoid are not class methods. This means that when you call them, they expect Class to be the implicit first argument.
This error
TypeError: <lambda>() takes exactly 1 argument (2 given)
happens on this call
self.some_attr = self.sigmoid(2)
because the class instance object is passed implicitly along with int 2. But your sigmoid is defined to accept only one argument.
And I donβt think you will get this error
TypeError: unbound method <lambda>() must be called with BackPropogationNetwork instance as first argument (got int instance instead)
with this challenge
self.some_attr = ClassName.sigmoid()
The error you should get should be something like.
TypeError: unsupported operand type(s) for ** or pow(): 'int' and 'type'
You may have made a mistake while pasting when entering a question.
source share