def selectData(data, featureSet):
    """
    Selects a part of your data according to a feature set

    Args:
      data : dict of str: numpy.ndarray 
        dictionary that contains your full data to be partitioned
        featureSet: A list that contains the feature set that you want to select

    Returns:
      selectedData : dict of str: numpy.ndarray
       dictionary that contains the selected data according to the feature set
  """
    partialData = {'features': {}, 'response': {}}
    for feature in featureSet:
        currKey = 'X' + str(int(feature))
        partialData['features'][currKey] = data['features'][currKey]
    return partialData
