I’m not familiar with DNA sequencing, but I would try to split the dog sequence into a training, validation, and test set. This would make sure, that each data split was drawn from approx. the same distribution.
@GISKing
It seems your model output has the shape [batch_size, 5], which would mean that your target should be a LongTensor with the shape [batch_size] containing the class indices.