데이터 세트를 가져 와서 교육 : 60 %, 테스트 : 20 % 및 유효성 검사 : 20 %의 세 부분으로 나누려고합니다. 내가 다시 분할 같은 일을 수행 할 때(캐럿 포함) : 테스트/교육/유효성 검사를위한 여러 크기의 파티션 만들기
part1 <- createDataPartition(fullDataSet$classe, p=0.8, list=FALSE)
validation <- fullDataSet[-part1,]
workingSet <- fullDataSet[part1,]
는 :
Error in sort.list(y) : 'x' must be atomic for 'sort.list'
Have you called 'sort' on a list?
중 하나) 다른 크기의 3 개 파티션을 만들 수있는 방법이 있나요 :
inTrain <- createDataPartition(workingSet$classe, p=.75, list=FALSE)
을 나는 오류 또는 b) 내가 시도한 것과 같은 중첩 된 파티션을 수행합니까? 나는 c) 대신에 sample()을 사용해 보았지만, 강사가 createDataPartition만을 사용하는 클래스를위한 것이고 코드를 보여줘야한다. 누구든지 여기에 조언이 있습니까?
이것은 내가하는 일입니다. 불행히도 더 많은'캐럿'네이티브 솔루션이나'createDataPartition'에 쓸 수있는 한 줄짜리 코드가 있는지 확신하지 못합니다. – NiuBiBang