I do not completely understand your question either:

How are the weights related to the frequency of appearence?
What do you mean by a balanced sample set?
Standard regression tasks do not include classes. How are those classes related to your regression task?