Gender Trainer parameter optimisation and saving model