Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
possible conflict
  • Loading branch information
jet08013 committed Apr 17, 2018
1 parent 8a1dc5e commit 44728c6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions BDA 2.11.13.ipynb
Expand Up @@ -364,27 +364,28 @@
},
{
"cell_type": "code",
"execution_count": 90,
"execution_count": 93,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'copy_X': True, 'fit_intercept': True, 'n_jobs': 1, 'normalize': False}"
"array([804.53466689])"
]
},
"execution_count": 90,
"execution_count": 93,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"lr=LinearRegression()\n",
"lr=LinearRegression(fit_intercept=True)\n",
"lr.fit(airline_df['Miles'].values.reshape(-1,1),airline_df['Deaths'].values.reshape(-1,1))\n",
"deaths_pred=lr.predict(np.linspace(4000,8000,10).reshape(-1,1))\n",
"ax.plot(np.linspace(4000,8000,10),deaths_pred)\n",
"plt.show()\n",
"lr.get_params()"
"lr.get_params()\n",
"lr.coef_\n"
]
},
{
Expand Down

0 comments on commit 44728c6

Please sign in to comment.