sample weight and linear kernel