﻿[Script Info] Title: [Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:00.39,0:00:03.77,Default,,0000,0000,0000,,I told you this was a tough quiz because we hadn't actually done this before. Dialogue: 0,0:00:03.77,0:00:06.70,Default,,0000,0000,0000,,So hopefully you were able to find it on the documentation page or Dialogue: 0,0:00:06.70,0:00:07.94,Default,,0000,0000,0000,,on the internet somewhere. Dialogue: 0,0:00:07.94,0:00:11.66,Default,,0000,0000,0000,,And so the way that you get the coefficients of a Lasso regression or Dialogue: 0,0:00:11.66,0:00:16.79,Default,,0000,0000,0000,,of any regression really is by calling .coef_ on Dialogue: 0,0:00:16.79,0:00:21.27,Default,,0000,0000,0000,,your regression, which in our case just has the name regression. Dialogue: 0,0:00:21.27,0:00:24.67,Default,,0000,0000,0000,,So if you call this print statement, it's going to give you a list that Dialogue: 0,0:00:24.67,0:00:28.29,Default,,0000,0000,0000,,contains all of the coefficients that have been found by your regression. Dialogue: 0,0:00:28.29,0:00:32.44,Default,,0000,0000,0000,,So you can look at this list now, and you can figure out which features have Dialogue: 0,0:00:32.44,0:00:35.70,Default,,0000,0000,0000,,the large coefficients, which means they're important features, and Dialogue: 0,0:00:35.70,0:00:38.43,Default,,0000,0000,0000,,which ones have the coefficients that are set to very small values.