Finished BIDMatifying train() and classify()