Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Machine Learning by (19k points)

Can anyone tell me what is test size in Scikit learn?

1 Answer

0 votes
by (19.9k points)
edited by

In Scikit Learn, the ‘train_test_split” function will have the parameter ‘test_size’. This represents what proportion of the dataset to be included in the test dataset. It should be between 0 and 1.

If None, the test_size will be set to the complement of the train size. If train_size is also None, the default value of test_size will be 0.25.

If you are interested to learn Machine Learning and implement ML projects, check out this Machine Learning Online Course by Intellipaat.

Also, watch this video on Machine learning with Scikit-Learn to get started:

Browse Categories