def get_input_and_target_from(dmfs):
    inputs = []
    target = []
    for dmf in dmfs:
        inputs.append([1] + dmf.get_features().values())
        target.append(dmf.related)

    return inputs, target