Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion experimentation/Diabetes Ridge Regression Training.ipynb
Original file line numberDiff line numberDiff line change
Expand Up@@ -59,6 +59,18 @@
" return reg_model"
]
},
{
"cell_type": "code",
"metadata": {},
"source": [
"# Evaluate the metrics for the model\n",
"def = get_model_metrics(reg_model, data):\n",
"preds = reg_model.predict(data[\"test\"][\"X\"])\n",
"mse = mean_squared_error(preds, y_test)\n",
"metrics = {\"mse\": mse}\n",
" return metrics"
]
},
{
"cell_type": "code",
"execution_count": 4,
Expand DownExpand Up@@ -139,7 +151,7 @@
]
},
{
"cell_type": "markdown",
"cell_type": "code",
"metadata": {},
"source": [
"## Evaluate the metrics for the model"
Expand Down