return 0 instead of []
fix non classification RBM errors
examples and tests