removed sample_weight variable