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 with AI-Powered 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

Accounting Information System

Authors: James A. Hall

7th Edition

978-1439078570, 1439078572

Students also viewed these Mathematics questions