0:00:00.390,0:00:03.770
I told you this was a tough quiz because we hadn't actually done this before.
0:00:03.770,0:00:06.700
So hopefully you were able to find it on the documentation page or
0:00:06.700,0:00:07.939
on the internet somewhere.
0:00:07.939,0:00:11.660
And so the way that you get the coefficients of a Lasso regression or
0:00:11.660,0:00:16.790
of any regression really is by calling .coef_ on
0:00:16.790,0:00:21.270
your regression, which in our case just has the name regression.
0:00:21.270,0:00:24.670
So if you call this print statement, it's going to give you a list that
0:00:24.670,0:00:28.290
contains all of the coefficients that have been found by your regression.
0:00:28.290,0:00:32.439
So you can look at this list now, and you can figure out which features have
0:00:32.439,0:00:35.700
the large coefficients, which means they're important features, and
0:00:35.700,0:00:38.430
which ones have the coefficients that are set to very small values.