LearnPy Hub
← Machine Learning: scikit-learn problems
Easy

How Big Is the Test Set?

Split the 150 iris flowers with train_test_split using the given test_size and random_state=0. Print the number of training rows and test rows.

Input

One decimal number: the test size (for example 0.2).

Output

Two integers: training rows and test rows.

Sample 1

Input
0.2
Output
120 30

Sample 2

Input
0.25
Output
112 38
solution.py
Output appears here
Hints
How Big Is the Test Set? · Python practice problem · LearnPy Hub