subject

First let us create an even split of the data into train and test partitions using createDataPartition. The code with a missing line is given below: set. seed(2)
# line of code
test <- iris[test_index,]
train <- iris[-test_index,]

Which code should be used in place of # line of code above?

a. test_index <- createDataPartition(y, times=1,p=0.5)
b. test_index <- sample(2,length(y),replace=FALSE) c. test_index <- createDataPartition(y, times=1,p=0.5,list=FALSE)
d. test_index <- rep(1,length(y))

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:30
You are new to microsoft certification and want to start out by getting a certification geared around windows 8. what microsoft certification should you pursue?
Answers: 1
question
Computers and Technology, 23.06.2019 03:10
Acomputer has a two-level cache. suppose that 60% of the memory references hit on the first level cache, 35% hit on the second level, and 5% miss. the access times are 5 nsec, 15 nsec, and 60 nsec, respectively, where the times for the level 2 cache and memory start counting at the moment it is known that they are needed (e.g., a level 2 cache access does not even start until the level 1 cache miss occurs). what is the average access time?
Answers: 1
question
Computers and Technology, 23.06.2019 09:10
Effective character encoding requires standardized code. compatible browsers. common languages. identical operating systems.
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
Each time you save a document, you will need to type in the file type in which it should be saved you can select the save button to save it with the same file name if it has been previously saved you will need to select the location to save the file you will need to use the save as dialog box
Answers: 1
You know the right answer?
First let us create an even split of the data into train and test partitions using createDataPartiti...
Questions
question
Mathematics, 27.04.2021 16:10
question
Mathematics, 27.04.2021 16:10
question
Mathematics, 27.04.2021 16:10