def shallow_copy_sets(training_sets):
    """Return shallow copy of training data, where the numpy arrays are not
    copied, but the dicts are deep-copied."""
    result = {}
    for name, d in training_sets.items():
        result[name] = dict(d)
    return result