On the learning of weights in some aggregation operators : the weighted mean and OWA operators