def process_data(machine, data):
  """Iterates over classes and passes data through the trained machine"""

  output = {}
  for cl in data.keys():
    output[cl]=machine.forward(data[cl])

  return output