What is the primary purpose of splitting data into training and testing sets in predictive analytics?单项选择题
A
To double the amount of data available for analysis
B
To use the training set to build the model and the test set to assess its real-world performance
C
To ensure the model uses only numerical features
D
To prevent overfitting by reducing the number of features
登录即可查看完整答案
我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。
类似问题
What function randomly splits a data set into training and testing subsets?
What is the purpose of performing a train/test split?
What is the purpose of performing a train/test split?
Consider the following Python code: X_train, X_test, y_train, y_test = train_test_split( X, y, test_size=0.2, random_state=42 ) If the original dataset contains 1,000 observations, how many will be in the training set?
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!