get weights of attributes