Fix a bug: data.has_weights is a method.

Fix incorrect handling of weights in SklFitter.