![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 27.08.2021 16:40 angel478
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](/tpl/images/cats/User.png)
Answers: 2
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 02:10
Aspeed limit sign that says "night" indicates the legal speed between sunset and sunrise.
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 13:50
What does code do? a creates a text box that says "solid black" b creates a black border of any width c creates a black border 1 pixel wide
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 21:30
The hybrid uses 144 to 158 volt batteries.
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 23:00
What is a current gdp and what is a real gdp?
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](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 01.02.2020 19:42
![question](/tpl/images/cats/en.png)
English, 01.02.2020 19:42
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
English, 01.02.2020 19:42
![question](/tpl/images/cats/mat.png)
Mathematics, 01.02.2020 19:42
![question](/tpl/images/cats/ap.png)
Advanced Placement (AP), 01.02.2020 19:42
![question](/tpl/images/cats/biologiya.png)
Biology, 01.02.2020 19:42
![question](/tpl/images/cats/mat.png)
Mathematics, 01.02.2020 19:42
![question](/tpl/images/cats/mat.png)
Mathematics, 01.02.2020 19:42
![question](/tpl/images/cats/mat.png)
Mathematics, 01.02.2020 19:42
![question](/tpl/images/cats/biologiya.png)
Biology, 01.02.2020 19:42
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/en.png)
English, 01.02.2020 19:42
![question](/tpl/images/cats/mat.png)
Mathematics, 01.02.2020 19:42
![question](/tpl/images/cats/biologiya.png)
Biology, 01.02.2020 19:42
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/istoriya.png)
History, 01.02.2020 19:42