Skip to content

Commit

Permalink
Created using Colab
Browse files Browse the repository at this point in the history
  • Loading branch information
arssite committed Jul 2, 2024
1 parent 88c6e7e commit 4d61f1a
Showing 1 changed file with 64 additions and 2 deletions.
66 changes: 64 additions & 2 deletions LinearRegression_Practice.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"metadata": {
"colab": {
"provenance": [],
"authorship_tag": "ABX9TyO0ur/+9ROR6cthswfqCpdS",
"authorship_tag": "ABX9TyOGNHRqYikFv/ZyMY9pUkYq",
"include_colab_link": true
},
"kernelspec": {
Expand Down Expand Up @@ -2718,6 +2718,32 @@
}
]
},
{
"cell_type": "code",
"source": [
"data.shape"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "1Fh5AtjC4OS4",
"outputId": "62219e6e-6189-45c2-86eb-4cef967bcbbb"
},
"execution_count": 14,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"(30, 2)"
]
},
"metadata": {},
"execution_count": 14
}
]
},
{
"cell_type": "code",
"source": [
Expand Down Expand Up @@ -3109,11 +3135,47 @@
}
]
},
{
"cell_type": "code",
"source": [
"#ALternate Way\n",
"'''\n",
"x=data.iloc[:,:-1].values.reshape(len(data),1)\n",
"y=data.iloc[:,-1].values\n",
"print(x,'\\n',y)\n",
"\n",
"'''"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 36
},
"id": "TgF6Gw670lms",
"outputId": "753fc47c-1988-47b6-e729-a23b07d06fed"
},
"execution_count": 17,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"\"\\nx=data.iloc[:,:-1].values.reshape(len(data),1)\\ny=data.iloc[:,-1].values\\nprint(x,'\\n',y)\\n\""
],
"application/vnd.google.colaboratory.intrinsic+json": {
"type": "string"
}
},
"metadata": {},
"execution_count": 17
}
]
},
{
"cell_type": "code",
"source": [],
"metadata": {
"id": "TgF6Gw670lms"
"id": "waD5gYZM4r13"
},
"execution_count": null,
"outputs": []
Expand Down

0 comments on commit 4d61f1a

Please sign in to comment.