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