def list_to_tf_input(data, response_index, num_outcomes):
matrix = np.matrix([row[:response_index] + row[response_index+<NUM_LIT:1>:] for row in data])<EOL>outcomes = np.asarray([row[response_index] for row in data], dtype=np.uint8)<EOL>return matrix, outcomes<EOL>
Separates the outcome feature from the data.