Assignment10

Assignment10

by Khashayar Namdar -
Number of replies: 2

Hi,


- Where you mention "The function should download the file at the URL and create a stratified split of the data into training and testing", do you mean having the same class ratios in train and test, or do you mean having sth like the codes you used in the session?

- do you care about train/test ratio? How should it be handled? Is hard coding fine?


Best,

Ernest

In reply to Khashayar Namdar

Re: Assignment10

by Akash Kothari -
Hi Ernest,

I did the same class ratios - without giving it away, there is an example in one of the lectures using a package function.
For the ratios, I counted the sample output to figure out how many total samples were in the confusion matrix. That should give you the size of the test.data.

Akash
In reply to Khashayar Namdar

Re: Assignment10

by Erik Spence -
Hard-coding the train-test ratio is fine. And yes, the class ratios in the training and testing data should be the same.