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: