Question

where might you find test data?

where might you find test data?

Homework Answers

Answer #1

the dataset has to be divided into two parts one part is for training and another is for testing.generally the part which contains more samples will be considered as training data and the part which contains less samples will be considered as testing data.
suppose there is a dataset contains 100 samples
it can be divided as 75 samples for training and the remaining for testing.
there is a method in sklearn to split the train and test data in the desired ratio
it can be done as
from sklearn.model_selection import train_test_split
x_train,x_test,y_train,y_test = train_test_split(x,y,test_size=1/4,random_state=0)
x - input set of our data
y - output set of our data
test_size - the ratio in which the dataset has to be divided for training and testing.

If you have any doubts please comment and please don't dislike.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Please give a 1-2 sentence description (where might you find them/how common are they/what disease might...
Please give a 1-2 sentence description (where might you find them/how common are they/what disease might they cause/etc.) of the following bacteria: S. anginosus, and Enterobacteriacae.
Locate and watch a business presentation that interests you. Websites where you might find business presentation...
Locate and watch a business presentation that interests you. Websites where you might find business presentation videos include YouTube™, CNBC, Forbes, Fortune, and TED. Respond to the following: Describe the presentation and why it was effective or ineffective. What are some ways a presenter can connect with the audience during a presentation?
1. What is electric potential? 2. Name 3 items where you might find an electric potential....
1. What is electric potential? 2. Name 3 items where you might find an electric potential. 3. Electric fields have a magnitude and a direction. Does electric potential have both magnitude and direction? Explain. 4. Can you add electric potential? 5. What is a line of equipotential?
How do you think you might use data analytics and data visualization in accounting and auditing...
How do you think you might use data analytics and data visualization in accounting and auditing industry
Where do you find the female gametophyte in an angiosperm? Where do you find the male...
Where do you find the female gametophyte in an angiosperm? Where do you find the male gametophyte in an angiosperm?   In angiosperms, what is double fertilization? What is the product of each fertilization event?  
Where else might we find Euthyphro-style dilemmas, and why? What does this say about the nature...
Where else might we find Euthyphro-style dilemmas, and why? What does this say about the nature of authority in general and the possibility of disagreement?
Can you give an example of three or more independent groups that you might test with...
Can you give an example of three or more independent groups that you might test with an ANOVA? Include a description of the groups and the response (dependent) variable.
I know this might be a long shot, however for a project i need to find...
I know this might be a long shot, however for a project i need to find data to do a statistical test on, preferably a one way or two way anova. I cannot for the life of me find any crude data to analyze. pretty much just need help finding some, any help is appreciated!
Given the data made available, how might you structure the analysis to prove whether fantasy sports...
Given the data made available, how might you structure the analysis to prove whether fantasy sports is a skills-based or chance-based game. Include what hypothesis or statements a company might make to prove that fantasy sports is skill-dominant.  Dream11 platform has both free and paid users. Can the average scores of users be used to test whether this is a skills-based or chance-based game? Also State whether you believe fantasy sports is skills-based or chance-based and why using the information and...
Who might you test the claim that the moon is made cheese? Is this claim Falsifiable...
Who might you test the claim that the moon is made cheese? Is this claim Falsifiable and why is falsifiable important in science?