Skip to content

Commit f1366ad

Browse files
committed
Added new section for Part 2: Overfitting, Underfitting and Model Selection, in Lab 5 on Model Evaluation and Refinement
1 parent 4cefb09 commit f1366ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

02 DA0101EN Analyzing Data with Python/Module 5 - Model Evaluation/ModelEvaluationAndRefinement.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from sklearn.model_selection import train_test_split
1111
from sklearn.linear_model import LinearRegression
1212
from sklearn.model_selection import cross_val_score
13+
from sklearn.model_selection import cross_val_predict
1314

1415
# Import clean data
1516
path = 'https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBMDeveloperSkillsNetwork-DA0101EN-SkillsNetwork/labs/Data%20files/module_5_auto.csv'
@@ -119,3 +120,6 @@ def PollyPlot(xtrain, xtest, y_train, y_test, lr,poly_transform):
119120

120121
print("The mean of the folds are", Rcross_1.mean(), "and the standard deviation is" , Rcross_1.std())
121122

123+
#%%
124+
125+
# Part 2: Overfitting, Underfitting and Model Selection

0 commit comments

Comments
 (0)