def _fit_regression(self, y):
if self.regressor is None:<EOL><INDENT>self.coefs_ = safe_sparse_dot(pinv2(self.hidden_activations_), y)<EOL><DEDENT>else:<EOL><INDENT>self.regressor.fit(self.hidden_activations_, y)<EOL><DEDENT>self.fitted_ = True<EOL>
fit regression using pseudo-inverse
or supplied regressor