시작하기무료로 시작하기

Random search with caret

Now you are going to perform a random search instead of grid search!

As before, the small voters_train_data dataset has been loaded for you, as have the caret and tictoc packages.

이 연습은 강의의 일부입니다

Hyperparameter Tuning in R

강의 보기

실습형 인터랙티브 연습

이 예제를 이 샘플 코드를 완성하여 풀어보세요.

# Train control with random search
fitControl <- trainControl(method = "repeatedcv",
                           number = 3,
                           repeats = 5,
                           ___ = ___)
코드 편집 및 실행