def _generate_components(self, X):
rs = check_random_state(self.random_state)<EOL>if (self._use_mlp_input):<EOL><INDENT>self._compute_biases(rs)<EOL>self._compute_weights(X, rs)<EOL><DEDENT>if (self._use_rbf_input):<EOL><INDENT>self._compute_centers(X, sp.issparse(X), rs)<EOL>self._compute_radii()<EOL><DEDENT>
Generate components of hidden layer given X