fixed problem with number of samples withheld from sample count passed to cascade training