Removed handlng of negative sample_weights and moved bagging genration out of the class.