def set_matrix(self, X, input_type):
if input_type == '<STR_LIT:data>':<EOL><INDENT>self.set_data_matrix(X)<EOL><DEDENT>elif input_type == '<STR_LIT>':<EOL><INDENT>self.set_adjacency_matrix(X)<EOL><DEDENT>elif input_type == '<STR_LIT>':<EOL><INDENT>self.set_affinity_matrix(X)<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>".format(input_type))<EOL><DEDENT>
Set the data matrix given the (string) input_type