These two lines are repeated at least three times
```
+            self.n_outputs_ = np.size(self.constant_)  # y.shape[1] is not safe
+            self.output_2d_ = (y.ndim == 2)
+            return self
```

It would be nice to be [DRY](http://en.wikipedia.org/wiki/Don't_repeat_yourself).