Commit 7a8bf0f2 authored by Filip Volf's avatar Filip Volf

Ukol04: Finished

parent cb0b1a41
......@@ -5235,9 +5235,18 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Median absolute error for SGD Linear regression with normalization: 2088.0802440472216\n",
"Median absolute error for SGD Linear regression with standardization: 2039.0533569828285\n"
]
}
],
"source": [
"####################################################\n",
"#Linear Regression with Stochastic Gradient Descent#\n",
......@@ -5268,8 +5277,7 @@
"MAE = median_absolute_error(Y_test,sgd_norm.predict(X_test_norm))\n",
"print(\"Median absolute error for SGD Linear regression with normalization: \"+str(MAE));\n",
"MAE = median_absolute_error(Y_test,sgd_stand.predict(X_test_stand))\n",
"print(\"Median absolute error for SGD Linear regression with standardization: \"+str(MAE));\n",
"\n"
"print(\"Median absolute error for SGD Linear regression with standardization: \"+str(MAE));\n"
]
}
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment