Added training flag on classification request, moved conversion of Sample and SamplePacket to Utils