Fix a bug: data.has_weights is a method.
Merge pull request #132 from astaric/skl-weights

Fix a bug: data.has_weights is a method.