code: def set_matrix(self, X, input_type):
          
          if input_type == 'data':
              self.set_data_matrix(X)
          elif input_type == 'adjacency':
              self.set_adjacency_matrix(X)
          elif input_type == 'affinity':
              self.set_affinity_matrix(X)
          else:
              raise ValueError("Unrecognized input_type: {0}".format(input_type))
docs: Set the data matrix given the (string) input_type