[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"sanity-icEsDedDlZ8qjU4RMJYCPeJkdqE2V3rZm_2Xtaa-LcQ":3,"sanity-DPoZ-zbI0_ft1lHR05FeRHYuvkdum56vuRcpY2kfFmA":247},{"data":4,"sourceMap":-1},{"latestPodcast":5,"latestReleases":14,"post":39,"recent":222},[6],{"_id":7,"publishedAt":8,"slug":9,"sponsored":12,"title":13},"50f4509c-4f55-4f11-8adc-5556e821ea77","2026-06-30T07:40:00.000Z",{"_type":10,"current":11},"slug","why-intent-prediction-needs-more-than-an-llm",null,"Why intent prediction needs more than an LLM",[15,21,27,33],{"_id":16,"publishedAt":17,"slug":18,"title":20},"eb5b66eb-9410-4329-83bb-22bbff39402a","2026-04-28T13:00:00.000Z",{"_type":10,"current":19},"turn-scattered-knowledge-into-trusted-intelligence","Turning scattered knowledge into trusted intelligence: Stack Internal 2026.3",{"_id":22,"publishedAt":23,"slug":24,"title":26},"369c2401-b62e-4a37-8ff8-bf603023ecad","2026-03-02T15:03:00.988Z",{"_type":10,"current":25},"what-s-new-at-stack-overflow-march-2026","What’s new at Stack Overflow: March 2026",{"_id":28,"publishedAt":29,"slug":30,"title":32},"5e9053a4-07ea-447c-91ea-29e0b6228537","2026-02-02T15:00:00.000Z",{"_type":10,"current":31},"what-s-new-at-stack-overflow-february-2026","What’s new at Stack Overflow: February 2026",{"_id":34,"publishedAt":35,"slug":36,"title":38},"a1b538eb-a8a6-46d0-80a1-ac70ec9bb935","2026-01-05T10:00:00.000-05:00",{"_type":10,"current":37},"what-s-new-at-stack-overflow-january-2026","What’s new at Stack Overflow: January 2026",{"_createdAt":40,"_id":41,"_rev":42,"_type":43,"_updatedAt":44,"author":45,"body":62,"comments":182,"dateUrl":183,"excerpt":184,"image":185,"legacyBody":188,"product":12,"publishedAt":191,"slug":192,"sponsored":12,"tags":194,"title":221,"visible":182},"2023-05-25T09:39:18Z","wp-post-18399","9HpbCsT2tq0xwozQfkgFsd","blogPost","2023-07-13T14:56:01Z",[46],{"_createdAt":47,"_id":48,"_rev":49,"_type":50,"_updatedAt":51,"avatar":52,"bio":57,"employee":58,"name":59,"slug":60},"2023-05-23T16:27:18Z","wp-author-cap-17508","07ZbrKPSUrjrV4wQ6fDpaa","blogAuthor","2023-06-20T15:05:10Z",{"_type":53,"asset":54},"image",{"_ref":55,"_type":56},"image-8c28cb2ef9d5c7ef909c7685c3808e5c66f17aeb-400x400-jpg","reference","Curriculum Developer, Codecademy","none","Sophie Sommer",{"current":61},"sophie-sommer",[63,74,78,86,100,111,122,163],{"_key":64,"_type":65,"children":66,"markDefs":72,"style":73},"34461387f655","block",[67],{"_key":68,"_type":69,"marks":70,"text":71},"34461387f6550","span",[],"In the seventh lesson of the series we'll discuss some methods for comparing linear regression models. In the process, we'll learn about the problem of overfitting and investigate some of the pros and cons of various evaluation methods (such as R-squared, adjusted R-squared, log likelihood, AIC, and BIC). We'll also continue to practice our Python skills.",[],"normal",{"_key":75,"_type":76,"markDefs":12,"url":77},"a65643f25c4a","embed","https:\u002F\u002Fwww.youtube.com\u002Fembed\u002Fn1E8_OqB0Fs?start=132",{"_key":79,"_type":65,"children":80,"markDefs":85,"style":73},"91829a0ad008",[81],{"_key":82,"_type":69,"marks":83,"text":84},"91829a0ad0080",[],"Here are some Stack Overflow questions related to the work we did in today's session:",[],{"_key":87,"_type":65,"children":88,"level":94,"listItem":95,"markDefs":96,"style":73},"c1406079f307",[89],{"_key":90,"_type":69,"marks":91,"text":93},"c1406079f3070",[92],"8e2a4c2c10ee","How do I calculate the adjusted R-squared score using scikit-learn?",1,"bullet",[97],{"_key":92,"_type":98,"href":99,"reference":12},"link","https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002F49381661\u002Fhow-do-i-calculate-the-adjusted-r-squared-score-using-scikit-learn",{"_key":101,"_type":65,"children":102,"level":94,"listItem":95,"markDefs":108,"style":73},"4d970a369714",[103],{"_key":104,"_type":69,"marks":105,"text":107},"4d970a3697140",[106],"adfd1490f14e","scikit-learn & statsmodels - which R-squared is correct?",[109],{"_key":106,"_type":98,"href":110,"reference":12},"https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002F54614157\u002Fscikit-learn-statsmodels-which-r-squared-is-correct",{"_key":112,"_type":65,"children":113,"level":94,"listItem":95,"markDefs":119,"style":73},"0ed7419d2b6f",[114],{"_key":115,"_type":69,"marks":116,"text":118},"0ed7419d2b6f0",[117],"c7df1fa90683","How to compute AIC for linear regression model in Python?",[120],{"_key":117,"_type":98,"href":121,"reference":12},"https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002F45033980\u002Fhow-to-compute-aic-for-linear-regression-model-in-python",{"_key":123,"_type":65,"children":124,"markDefs":156,"style":73},"e9635e677e8c",[125,129,134,138,143,147,152],{"_key":126,"_type":69,"marks":127,"text":128},"e9635e677e8c0",[],"If you want to ask any questions or provide feedback on the lesson, you are welcome to leave a comment on the ",{"_key":130,"_type":69,"marks":131,"text":133},"e9635e677e8c1",[132],"7adc3151b2cf","YouTube recording of this lesson",{"_key":135,"_type":69,"marks":136,"text":137},"e9635e677e8c2",[],". If you’d like to watch a session live, follow the ",{"_key":139,"_type":69,"marks":140,"text":142},"e9635e677e8c3",[141],"0230011d811a","Codecademy YouTube channel",{"_key":144,"_type":69,"marks":145,"text":146},"e9635e677e8c4",[],". We'll be live again on Tuesday, July 13 at 11am EDT to summarize all of the topics we've covered over the past seven weeks. You can join that session ",{"_key":148,"_type":69,"marks":149,"text":151},"e9635e677e8c5",[150],"fc3681a79ad1","here",{"_key":153,"_type":69,"marks":154,"text":155},"e9635e677e8c6",[],".",[157,159,161],{"_key":132,"_type":98,"href":158,"reference":12},"https:\u002F\u002Fyoutu.be\u002Fn1E8_OqB0Fs?t=132",{"_key":141,"_type":98,"href":160,"reference":12},"https:\u002F\u002Fwww.youtube.com\u002Fc\u002Fcodecademy\u002Ffeatured",{"_key":150,"_type":98,"href":162,"reference":12},"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=r1BsmABJbxo",{"_key":164,"_type":65,"children":165,"markDefs":179,"style":73},"fe1c53fe4f1d",[166,170,175],{"_key":167,"_type":69,"marks":168,"text":169},"fe1c53fe4f1d0",[],"Finally, if you want even more linear regression content, you can sign up for the ",{"_key":171,"_type":69,"marks":172,"text":174},"fe1c53fe4f1d1",[173],"2248b8a44c4f","Linear Regression in Python interactive course",{"_key":176,"_type":69,"marks":177,"text":178},"fe1c53fe4f1d2",[]," this series was based on. This course was developed by Sophie and has many more quizzes, projects, and helpful nuggets that we can’t fit into our streams!",[180],{"_key":173,"_type":98,"href":181,"reference":12},"https:\u002F\u002Fwww.codecademy.com\u002Flearn\u002Flinear-regression-mssp?utm_source=stack_overflow&utm_medium=partners&utm_content=cclive_regression_1",true,"2021\u002F07\u002F03","",{"_type":53,"asset":186},{"_ref":187,"_type":56},"image-f5b272e299c874f83358613fe0855ad7f7ea164c-2400x1240-png",{"code":189,"language":190},"\u003C!-- wp:paragraph -->\n\u003Cp>In the seventh lesson of the series we'll discuss some methods for comparing linear regression models. In the process, we'll learn about the problem of overfitting and investigate some of the pros and cons of various evaluation methods (such as R-squared, adjusted R-squared, log likelihood, AIC, and BIC). We'll also continue to practice our Python skills.\u003C\u002Fp>\n\u003C!-- \u002Fwp:paragraph -->\n\n\u003C!-- wp:html -->\n\u003Ciframe width=\"560\" height=\"560\" src=\"https:\u002F\u002Fwww.youtube.com\u002Fembed\u002Fn1E8_OqB0Fs?start=132\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen>\u003C\u002Fiframe>\n\u003C!-- \u002Fwp:html -->\n\n\u003C!-- wp:paragraph -->\n\u003Cp>Here are some Stack Overflow questions related to the work we did in today's session:\u003C\u002Fp>\n\u003C!-- \u002Fwp:paragraph -->\n\n\u003C!-- wp:jetpack\u002Fmarkdown {\"source\":\"- [How do I calculate the adjusted R-squared score using scikit-learn?](https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002F49381661\u002Fhow-do-i-calculate-the-adjusted-r-squared-score-using-scikit-learn)\"} -->\n\u003Cdiv class=\"wp-block-jetpack-markdown\">\u003Cul>\n\u003Cli>\u003Ca href=\"https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002F49381661\u002Fhow-do-i-calculate-the-adjusted-r-squared-score-using-scikit-learn\">How do I calculate the adjusted R-squared score using scikit-learn?\u003C\u002Fa>\u003C\u002Fli>\n\u003C\u002Ful>\n\u003C\u002Fdiv>\n\u003C!-- \u002Fwp:jetpack\u002Fmarkdown -->\n\n\u003C!-- wp:jetpack\u002Fmarkdown {\"source\":\"- [scikit-learn \\u0026 statsmodels - which R-squared is correct?](https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002F54614157\u002Fscikit-learn-statsmodels-which-r-squared-is-correct)\"} -->\n\u003Cdiv class=\"wp-block-jetpack-markdown\">\u003Cul>\n\u003Cli>\u003Ca href=\"https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002F54614157\u002Fscikit-learn-statsmodels-which-r-squared-is-correct\">scikit-learn &amp; statsmodels - which R-squared is correct?\u003C\u002Fa>\u003C\u002Fli>\n\u003C\u002Ful>\n\u003C\u002Fdiv>\n\u003C!-- \u002Fwp:jetpack\u002Fmarkdown -->\n\n\u003C!-- wp:jetpack\u002Fmarkdown {\"source\":\"- [How to compute AIC for linear regression model in Python?](https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002F45033980\u002Fhow-to-compute-aic-for-linear-regression-model-in-python)\"} -->\n\u003Cdiv class=\"wp-block-jetpack-markdown\">\u003Cul>\n\u003Cli>\u003Ca href=\"https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002F45033980\u002Fhow-to-compute-aic-for-linear-regression-model-in-python\">How to compute AIC for linear regression model in Python?\u003C\u002Fa>\u003C\u002Fli>\n\u003C\u002Ful>\n\u003C\u002Fdiv>\n\u003C!-- \u002Fwp:jetpack\u002Fmarkdown -->\n\n\u003C!-- wp:paragraph -->\n\u003Cp>If you want to ask any questions or provide feedback on the lesson, you are welcome to leave a comment on the \u003Ca href=\"https:\u002F\u002Fyoutu.be\u002Fn1E8_OqB0Fs?t=132\">YouTube recording of this lesson\u003C\u002Fa>. If you’d like to watch a session live, follow the \u003Ca href=\"https:\u002F\u002Fwww.youtube.com\u002Fc\u002Fcodecademy\u002Ffeatured\">Codecademy YouTube channel\u003C\u002Fa>. We'll be live again on Tuesday, July 13 at 11am EDT to summarize all of the topics we've covered over the past seven weeks. You can join that session \u003Ca href=\"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=r1BsmABJbxo\">here\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!-- \u002Fwp:paragraph -->\n\n\u003C!-- wp:paragraph -->\n\u003Cp>Finally, if you want even more linear regression content, you can sign up for the \u003Ca href=\"https:\u002F\u002Fwww.codecademy.com\u002Flearn\u002Flinear-regression-mssp?utm_source=stack_overflow&amp;utm_medium=partners&amp;utm_content=cclive_regression_1\">Linear Regression in Python interactive course\u003C\u002Fa> this series was based on. This course was developed by Sophie and has many more quizzes, projects, and helpful nuggets that we can’t fit into our streams!\u003C\u002Fp>\n\u003C!-- \u002Fwp:paragraph -->","html","2021-07-03T13:41:00.000Z",{"current":193},"level-up-linear-regression-in-python-part-7",[195,203,207,212,217],{"_createdAt":196,"_id":197,"_rev":198,"_type":199,"_updatedAt":196,"slug":200,"title":202},"2023-05-23T16:43:21Z","wp-tagcat-code-for-a-living","9HpbCsT2tq0xwozQfkc4ih","blogTag",{"current":201},"code-for-a-living","Code for a Living",{"_createdAt":196,"_id":204,"_rev":198,"_type":199,"_updatedAt":196,"slug":205,"title":206},"wp-tagcat-codeacademy",{"current":206},"codeacademy",{"_createdAt":196,"_id":208,"_rev":198,"_type":199,"_updatedAt":196,"slug":209,"title":211},"wp-tagcat-level-up",{"current":210},"level-up","level up",{"_createdAt":196,"_id":213,"_rev":198,"_type":199,"_updatedAt":196,"slug":214,"title":216},"wp-tagcat-linear-regression",{"current":215},"linear-regression","linear regression",{"_createdAt":196,"_id":218,"_rev":198,"_type":199,"_updatedAt":196,"slug":219,"title":220},"wp-tagcat-python",{"current":220},"python","Level Up: Linear Regression in Python - Part 7",[223,229,235,241],{"_id":224,"publishedAt":225,"slug":226,"sponsored":12,"title":228},"28e560af-f0aa-4d46-bd90-f435ad604aa7","2026-06-26T14:00:27.102Z",{"_type":10,"current":227},"paging-charity-how-can-engineering-leaders-avoid-becoming-bond-villains","Paging Charity! How can engineering leaders avoid becoming Bond villains?",{"_id":230,"publishedAt":231,"slug":232,"sponsored":12,"title":234},"4b22c2a3-3779-4966-93eb-5230391dbdce","2026-06-23T14:08:58.595Z",{"_type":10,"current":233},"your-ai-shipped-a-backend-that-boots-that-is-the-whole-problem","Your AI shipped a backend that boots. That is the whole problem.",{"_id":236,"publishedAt":237,"slug":238,"sponsored":12,"title":240},"5cf362e1-fe7b-45af-b69c-914731c6a052","2026-06-23T14:00:00.000Z",{"_type":10,"current":239},"the-2026-developer-survey-is-now-open-for-human-developers-only","The 2026 Developer Survey is now open (for human developers only)!",{"_id":242,"publishedAt":243,"slug":244,"sponsored":12,"title":246},"30b995f7-7cb9-4dd8-bf71-d0685940a32b","2026-06-19T14:00:00.000Z",{"_type":10,"current":245},"dispatches-from-o-reilly-from-capabilities-to-responsibilities","Dispatches from O'Reilly: From capabilities to responsibilities",{"data":248,"sourceMap":-1},{"count":249,"lastTimestamp":12},0]