Open linusjf opened 2 months ago
Re-initialising design as follows before the above invocations resolves the issue. That's missing in the lab code:
design = MS(["lstat"])
Also, change design.transform(new_df) to
newX = design.fit_transform(new_df)
Will take a look and see if I can recreate this exception. Have not seen this error before and the exception does not refer to any line in ISLP as far as I can see
Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: Linus Fernandes @.> Sent: Wednesday, August 28, 2024 9:14:01 AM To: intro-stat-learning/ISLP_labs @.> Cc: Subscribed @.***> Subject: Re: [intro-stat-learning/ISLP_labs] ISLP Labs for Linear Regression fails (Issue #27)
Re-initialising design as follows before the above invocations resolves the issue. That's missing in the lab text:
design = MS(["lstat"])
— Reply to this email directly, view it on GitHubhttps://github.com/intro-stat-learning/ISLP_labs/issues/27#issuecomment-2315768134, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AACTM25OVDYELC6LM2U6VJ3ZTXZMTAVCNFSM6AAAAABNITNCA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJVG43DQMJTGQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>
https://github.com/intro-stat-learning/ISLP_labs/blob/main/Ch03-linreg-lab.ipynb?short_path=2720fcd
Line 1251
My working changes can be found here:
In Chapter 3, Linear Regression lab,
The above snippet throws the following errors:
What's causing the blowup?