Skip to content

Commit 7174882

Browse files
committed
statsmodels OLS API mod
1 parent 1986413 commit 7174882

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

bias_variance_linear_regression.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -331,19 +331,19 @@
331331
},
332332
{
333333
"cell_type": "code",
334-
"execution_count": 64,
334+
"execution_count": null,
335335
"id": "7d969206",
336336
"metadata": {},
337337
"outputs": [],
338338
"source": [
339339
"import matplotlib.pyplot as plt\n",
340340
"import numpy as np\n",
341-
"from statsmodels.api import OLS"
341+
"from statsmodels.regression.linear_model import OLS"
342342
]
343343
},
344344
{
345345
"cell_type": "code",
346-
"execution_count": 65,
346+
"execution_count": null,
347347
"id": "f18dc6d5",
348348
"metadata": {},
349349
"outputs": [],
@@ -391,7 +391,7 @@
391391
},
392392
{
393393
"cell_type": "code",
394-
"execution_count": 66,
394+
"execution_count": null,
395395
"id": "5e9a45d9",
396396
"metadata": {},
397397
"outputs": [],
@@ -729,7 +729,7 @@
729729
],
730730
"metadata": {
731731
"kernelspec": {
732-
"display_name": "myddasp",
732+
"display_name": "test_ols",
733733
"language": "python",
734734
"name": "python3"
735735
},
@@ -743,7 +743,7 @@
743743
"name": "python",
744744
"nbconvert_exporter": "python",
745745
"pygments_lexer": "ipython3",
746-
"version": "3.12.3"
746+
"version": "3.13.5"
747747
}
748748
},
749749
"nbformat": 4,

bias_variance_ridge_regression.ipynb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
},
2525
{
2626
"cell_type": "code",
27-
"execution_count": 13,
27+
"execution_count": null,
2828
"id": "c86e15f6",
2929
"metadata": {},
3030
"outputs": [],
3131
"source": [
3232
"import matplotlib.pyplot as plt\n",
3333
"import numpy as np\n",
34-
"from statsmodels.api import OLS"
34+
"from statsmodels.regression.linear_model import OLS"
3535
]
3636
},
3737
{
@@ -174,7 +174,7 @@
174174
},
175175
{
176176
"cell_type": "code",
177-
"execution_count": 15,
177+
"execution_count": null,
178178
"id": "6764d6da",
179179
"metadata": {},
180180
"outputs": [],
@@ -185,7 +185,7 @@
185185
},
186186
{
187187
"cell_type": "code",
188-
"execution_count": 16,
188+
"execution_count": null,
189189
"id": "d8ef032a",
190190
"metadata": {},
191191
"outputs": [],
@@ -263,7 +263,7 @@
263263
},
264264
{
265265
"cell_type": "code",
266-
"execution_count": 17,
266+
"execution_count": null,
267267
"id": "e21f304f",
268268
"metadata": {},
269269
"outputs": [],
@@ -295,7 +295,7 @@
295295
},
296296
{
297297
"cell_type": "code",
298-
"execution_count": 18,
298+
"execution_count": null,
299299
"id": "9afb4067",
300300
"metadata": {},
301301
"outputs": [],
@@ -337,7 +337,7 @@
337337
},
338338
{
339339
"cell_type": "code",
340-
"execution_count": 19,
340+
"execution_count": null,
341341
"id": "9c3ccf25",
342342
"metadata": {},
343343
"outputs": [],
@@ -669,7 +669,7 @@
669669
],
670670
"metadata": {
671671
"kernelspec": {
672-
"display_name": "myddasp",
672+
"display_name": "test_ols",
673673
"language": "python",
674674
"name": "python3"
675675
},
@@ -683,7 +683,7 @@
683683
"name": "python",
684684
"nbconvert_exporter": "python",
685685
"pygments_lexer": "ipython3",
686-
"version": "3.12.3"
686+
"version": "3.13.5"
687687
}
688688
},
689689
"nbformat": 4,

ols.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"from numpy.linalg import inv, pinv\n",
5353
"from scipy.stats import f, t\n",
5454
"from scipy.linalg import svdvals\n",
55-
"from statsmodels.api import OLS\n",
55+
"from statsmodels.regression.linear_model import OLS\n",
5656
"from statsmodels.graphics.gofplots import qqplot\n",
5757
"\n",
5858
"\n",
@@ -570,9 +570,9 @@
570570
],
571571
"metadata": {
572572
"kernelspec": {
573-
"display_name": "myddasp",
573+
"display_name": "test_ols",
574574
"language": "python",
575-
"name": "myddasp"
575+
"name": "python3"
576576
},
577577
"language_info": {
578578
"codemirror_mode": {
@@ -584,7 +584,7 @@
584584
"name": "python",
585585
"nbconvert_exporter": "python",
586586
"pygments_lexer": "ipython3",
587-
"version": "3.10.6"
587+
"version": "3.13.5"
588588
}
589589
},
590590
"nbformat": 4,

0 commit comments

Comments
 (0)