Made learning_rule into normal kwarg