simple parameter opt-n is complete. Custom cross validation loop might be better though