If "trainOnline" is not implemented, please make it throw an exception with a message saying that it is not implemented.