def _compute_subspace(task, settings):
    """Simple wrapper to compute a subspace task.
    """
    # Unpack task
    kwargs = settings.copy()
    i, key, features, params = task
    callback, model, x, y = [kwargs.pop(k) for k in ('callback', 'model', 'x', 'y')]

    # Evaluate model
    stats = callback(model, x[features], y, key=key, **kwargs)
    return i, features, stats