106 Evaluating A Regression Model 1 R2 Score | Scikit-learn Creating Machine Learning Models

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Great video. Just one correction, R², being the square of the R score, can't be a negative value.

rodrigomaximo
Автор

What is the difference of calculating R2 score for testing dataset vs training dataset?

jolenekhor
Автор

hello sir. When I apply the r2 score method to my model. Such as these codes;

np.random.seed(42)

X =df.drop("sr", axis=1)
y = df["sr"]
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)

model= = 100)
model.fit(X_train, y_train);

I am taking the 0.28028 value. I think this is very poor model. But when I predict with my model I am getting so close prediction with experimental result. So I cant get it what is wrong with my r2 score result pls help me.'

And also when I change "n_estimators = 100" to "n_estimators = 50" I am getting 0.7727 result. Why shouldn't use 50 instead of 100 in estimator? Is there any constraint about it?

otomotivteknoloji
Автор

Am I the only one who thinks his definition makes the concept more difficult to understand? Idk I just had an easier time withr the Wikipedia definition. That’s not on you that might just be in me. Great video, regardless.

tonysamosa