Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Define a 5 pre-folds of equal size of 'mytitanic' in a variable called 'myfolds' (2 points) {r} set . seed ( 2255 ) #

image text in transcribed
1. Define a 5 pre-folds of equal size of 'mytitanic' in a variable called 'myfolds' (2 points) "{r} set . seed ( 2255 ) # shuffle # # Create 5 folds of equal size # myfolds . . . 2. Use pre-fold number 3 to define a testing and a training set named 'mytest' and 'mytrain (2 points) i=3 # fold number to use 3. Fit a Random Forest model to the 'mytrain' dataset. Use the column 'Survived' as a factor outcome. Require importance to be true and set the random seed to 523. (This is the 'trained model' ). (2 points) # Fitting Random Forest Classification to the training set 'mytrain

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

New Trends In Shape Optimization

Authors: Aldo Pratelli, Günter Leugering

1st Edition

3319175637, 9783319175638

More Books

Students also viewed these Mathematics questions

Question

LO2 Describe the human resource planning process.

Answered: 1 week ago