I can’t understand how to retrieve weights.
here the code is:
weights = pd.DataFrame(
[est.coef_ for est in cv_results[“estimator”]], columns=data.columns)
In another example of the course this is
coefs = [pipeline[-1].coef_[0] for pipeline in cv_results[“estimator”]]
coefs = pd.DataFrame(coefs, columns=data.columns)
when it seemed to me that the cases were identical ?
Could you explain in a more detailed way the structure of cv_results[“estimator”]