Moved detection parameters to training parameters