def _compute_hidden_activations(self, X):
self._compute_input_activations(X)<EOL>acts = self.input_activations_<EOL>if (callable(self.activation_func)):<EOL><INDENT>args_dict = self.activation_args if (self.activation_args) else {}<EOL>X_new = self.activation_func(acts, **args_dict)<EOL><DEDENT>else:<EOL><INDENT>func_name = self.activation_func<EOL>func = self._internal_activation_funcs[func_name]<EOL>X_new = func(acts, **self._extra_args)<EOL><DEDENT>return X_new<EOL>
Compute hidden activations given X