def varyingParams(intObjects, params):
    """
    Takes a list of models or tasks and returns a dictionary with only the parameters
    which vary and their values
    """

    initDataSet = {param: [i[param] for i in intObjects] for param in params}
    dataSet = {param: val for param, val in initDataSet.items() if val.count(val[0]) != len(val)}

    return dataSet