Add exceptions to improper training set.
Add exceptions to improper training set.

* Raise exception if training set is empty.
* Raise exception if training set has malformed data.

dman7/machine-learning-as-a-service,dman7/machine-learning-as-a-service