I want to build a machine learning model and unfortunately I have a limit and small number of samples for both training and testing phase. I've always used a validation set for parameter optimization and after setting parameters I've used a separate test set to evaluate the system. But In this case I'm encountered with the lack of data and I don't know how I should use the CV for both parameter optimization and reliable system evaluation.