code: def set_event_patterns(self, event_pat):
          
          if event_pat.shape[1] != self.n_events:
              raise ValueError(("Number of columns of event_pat must match "
                                "number of events"))
          self.event_pat_ = event_pat.copy()
docs: Set HMM event patterns manually
  
          Rather than fitting the event patterns automatically using fit(), this
          function allows them to be set explicitly. They can then be used to
          find corresponding events in a new dataset, using find_events().
  
          Parameters
          ----------
          event_pat: voxel by event ndarray