Add weighted accuracy.

...and adjusted interface of weighted dataset.