def _compute_weights(self, X, rs):
<EOL>weights = self._get_user_components('<STR_LIT>')<EOL>if (weights is None):<EOL><INDENT>n_features = X.shape[<NUM_LIT:1>]<EOL>hw_size = (n_features, self.n_hidden)<EOL>weights = rs.normal(size=hw_size)<EOL><DEDENT>self.components_['<STR_LIT>'] = weights<EOL>
Generate MLP weights